I have OS Commerce store running on a Windows 2000 server with IIS, SMTP server, PHP 4.7 and MySQL server. However when a new user registers a confirmation mail usually send to the user however it gives the following error on screen. Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for firstname.lastname@example.org in C:\Inetpub\wwwroot\store\catalog\includes\classes\email.php on line 500
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\store\catalog\includes\classes\email.php:500) in C:\Inetpub\wwwroot\store\catalog\includes\functions\general.php on line 29
How do I rectify this. The SMTP server is working fine.
My experience with OsCommerce in a linux environment is that it uses sendmail to send out those messages rather than the SMTP server unless they changed it recently.
The 550 error is "Relay Access Denied" and is your mail server telling you that however you have the program configured does not have permission to send out mail on your server. That could be a number of things like having the hostname set wrong in OsCommerce or some other thing that makes your machine think you are an intruder.
I would look at your mail server configuration for send permissions. I have a helluva time figuring all that windows server stuff out so I can't help you there.