2

我正在使用 mime_mailer.php 发送电子邮件。当我发送电子邮件时,它显示以下错误:

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)

标题看起来像这样:

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"
4

1 回答 1

2

我敢打赌它抱怨抄送:字段中的空地址。去掉后面的逗号,你应该没问题。

于 2012-05-08T07:53:03.840 回答