私はphpmailerを使用して自分自身に電子メールで通知を送信しています。
メールはhtmlで、本文にはヘブライ文字が含まれています。
私のMacではメールは問題ないように見えますが、iPhoneではぎこちないように見えます。
htmlヘッドタグとphpmailerのプロパティの両方で、エンコーディングヘッダーの可能なすべての組み合わせを試しましたが、うまくいきませんでした。
何か案は?
ありがとう
コードをフォーマットするにはどうすればよいですか?
require("./classes/phpmailer/class.phpmailer.php");
$mailer = new PHPMailer();
$mailer->IsSMTP();
$mailer->Host = 'ssl://smtp.gmail.com:465';
$mailer->SMTPAuth = TRUE;
$mailer->Username = 'bla@gmail.com'; // Change this to your gmail adress
$mailer->Password = '1234'; // Change this to your gmail password
$mailer->From = 'joe@gmail.com'; // This HAVE TO be your gmail adress
$mailer->FromName = 'Mail'; // This is the from name in the email, you can put anything you like here
$mailer->IsHTML(true);
$mailer->Body = $message;
$mailer->Subject = $subject;
$mailer->AddAddress('me@gmail.com'); // This is where you put the email adress of the person you want to mail
if ($mailer->Send()) echo "ok";
else echo "no ok";