Multiple attachments through phpmailer

这一生的挚爱 提交于 2019-12-10 13:14:45

问题


I am using php mailer class to send multiple attachment mails. Two error are coming my way:

First these two lines apear when email is sended, these errors are from class.phpmailer.php:

Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/dev01/maiarn/class.phpmailer.php on line 1471

Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/dev01/maiarn/class.phpmailer.php on line 1475 Message has been sent.

Second The email is sent with only one attachment, The second goes where:

$mail->AddAttachment("logo.jpg"); // attachment
$mail->AddAttachment("logo.jpg"); 

Any Help


回答1:


It looks like you are using PHPMailer for PHP4 when you are running PHP5. If you are indeed running PHP5, make sure you have the latest PHPMailer from http://code.google.com/a/apache-extras.org/p/phpmailer/downloads/list

As for the attachments, you are attaching the same file twice? PHPMailer is probably removing duplicates.



来源:https://stackoverflow.com/questions/9315193/multiple-attachments-through-phpmailer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!