douying7289 2012-05-08 06:59
浏览 780
已采纳

SMTP服务器响应:501 <>:缺少或格式错误的本地部分

I am using mime_mailer.php to send emails. When I send email it shows the following error:

Warning:    mail() [function.mail]: SMTP server response: 501 <>: missing or malformed local part
Script:     /ppm/lm_response.php
File:   mime_mailer.php
Line:   33
Time:   2012-05-08 23:55:50 (PDT)
Warning:    Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\ppm\common.php:275)
Script:     /ppm/lm_response.php
File:   lm_response.php
Line:   44
Time:   2012-05-08 23:55:50 (PDT)

Header looks something likes this:

To: abc@ourdomain.com
From: def@ourdomain.com
X-Mailer: PHP/5.2.9 
Content-Type: text/html; charset=iso-8859-1 
Cc: ghi@ourdomain.com, 
MIME-Version: 1.0
Content-Type: multipart/related; boundary="mime_boundry_multipart/related_c6644189126a16de6271c67af235ddd0x"
  • 写回答

1条回答 默认 最新

  • dq1685513999 2012-05-08 07:53
    关注

    I bet it's complaining about the empty address in the Cc: field. Take out the trailing comma and you should be fine.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 stm32流水灯+呼吸灯+外部中断按键
  • ¥15 将二维数组,按照假设的规定,如0/1/0 == "4",把对应列位置写成一个字符并打印输出该字符
  • ¥15 NX MCD仿真与博途通讯不了啥情况
  • ¥15 win11家庭中文版安装docker遇到Hyper-V启用失败解决办法整理
  • ¥15 gradio的web端页面格式不对的问题
  • ¥15 求大家看看Nonce如何配置
  • ¥15 Matlab怎么求解含参的二重积分?
  • ¥15 苹果手机突然连不上wifi了?
  • ¥15 cgictest.cgi文件无法访问
  • ¥20 删除和修改功能无法调用