服务器SMTP上的错误 - 第557行的PEAR.php

时间:2013-10-22 11:34:45

标签: php email smtp pear

我的申请查询表格是最近2年 但现在我填写了我的查询页面上的所有信息并提交

预期:成功发送消息

实际:我的电子邮件帐户中没有收到任何电子邮件

我必须检查我的服务器日志有些错误 error_log文件

[21-Oct-2013 09:44:07 Europe/Minsk] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /home/public_html/includes/common/lib/email/Pear/PEAR.php on line 557
[21-Oct-2013 09:44:07 Europe/Minsk] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /home/public_html/includes/common/lib/email/Pear/PEAR.php on line 560
[21-Oct-2013 09:44:07 Europe/Minsk] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /home/public_html/includes/common/lib/email/Pear/Mail.php on line 134
[21-Oct-2013 09:44:07 Europe/Minsk] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /home/public_html/includes/common/lib/email/Pear/Mail/smtp.php on line 189
[21-Oct-2013 09:44:07 Europe/Minsk] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /home/public_html/includes/common/lib/email/Pear/Net/SMTP.php on line 127

帮我解决这个问题

1 个答案:

答案 0 :(得分:1)

尝试发送邮件邮件(“somebody@example.com”,“我的主题”,$ txt);

请检查参考http://www.w3schools.com/php/func_mail_mail.asp

当值已分配给您声明的变量时,显示错误。请检查