PHP Mailer バージョン 5.1 で画像を埋め込みたいのですが、私の PHP バージョンは 5.4.7 です。
スクリプトの実行は成功し、画像が埋め込まれたメールを受信できますが、問題は次のような警告が表示されることです。
非推奨: 関数 set_magic_quotes_runtime() は C:\xampp\htdocs\form\class.phpmailer.php の 1480 行で非推奨です
非推奨: 関数 set_magic_quotes_runtime() は C:\xampp\htdocs\form\class.phpmailer.php の 1484 行で非推奨です
そして私のスクリプトは
$mail->AddEmbeddedImage('filename', 'cid', 'name');
$mail->AddEmbeddedImage('sgu_logo.gif', 'my-pics', 'sgu_logo.gif');
$mail->Body = "Thank you for registering at SGU. For further processing please complete a registration fee before ". $e['testschedule']." <br> For future information please contact us at sgu.ac.id/support <br><br>
<img src='cid:sgu_logo.gif' alt='my-pics' />.";