Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

How to send emails?


Recommended Posts

I am a fool. I do not know how to send email. :'(


I used the Windows 2003 IIS as SMTP server, no authentication.

The php.ini file contains the right server IP and port for SMTP.

And i have made the osCommerce to use SMTP.

But i still get error:


Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in C:\Program Files\Apache Group\Apache2\htdocs\catalog\admin\includes\classes\email.php on line 500


Help me!!!


Link to comment
Share on other sites

Answer it myself. Here is a note copied form mail() function's reference on php.net.


Note: The Windows implementation of mail() differs in many ways from the Unix implementation. First, it doesn't use a local binary for composing messages but only operates on direct sockets which means a MTA is needed listening on a network socket (which can either on the localhost or a remote machine).


Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA in the first place, but are parsed by PHP.


As such, the to parameter should not be an address in the form of "Something <[email protected]>". The mail command may not parse this properly while talking with the MTA.


so the From and To should be mail address only. :blink:

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...