SMTP server response: 501 <>: missing or malformed local part

13,782

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

Share:
13,782
mfn
Author by

mfn

Updated on June 04, 2022

Comments

  • mfn
    mfn almost 2 years

    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: [email protected]
    From: [email protected]
    X-Mailer: PHP/5.2.9 
    Content-Type: text/html; charset=iso-8859-1 
    Cc: [email protected], 
    MIME-Version: 1.0
    Content-Type: multipart/related; boundary="mime_boundry_multipart/related_c6644189126a16de6271c67af235ddd0x"