使用phpmailer从php发送utf8 marathi内容邮件

时间:2015-12-31 07:26:30

标签: php email utf-8

我尝试使用phpmailer发送邮件。它对英文内容工作正常但现在我想发送马拉地语内容邮件。马拉地语内容邮件没有发送给用户。邮件看起来像मठ¹à¤¾à¤°à¤¾。     请告诉我该怎么办。     我的代码是     def convert_or_coerce_timestamp_to_utc(timeobj): out = timeobj try: out = timeobj.astimezone(pytz.utc) # aware object can be in any timezone except (ValueError,TypeError) as exc: # naive out = timeobj.replace(tzinfo=pytz.utc) return out

$mail = new PHPMailer(); $mail->CharSet = "UTF-8"; $mail->IsSMTP(); // we are going to use SMTP $mail->SMTPAuth = true; // enabled SMTP authentication //$mail->SMTPSecure = "ssl"; // prefix for secure protocol to connect to the server $mail->Host = ""; // setting GMail as our SMTP server $mail->Port = ""; // SMTP port to connect to GMail $mail->Username = ""; // user email address $mail->Password = ""; // password in GMail


0 个答案:

没有答案