Hi,
I have a problem with mail() function. I'm using PHP with Windows 2000 Professional and Internet Information Server 5.0. My php code is: mail("[EMAIL PROTECTED]", "Prueba Envio Email PHP", "Linea 1\nLinea 2\nLinea 3"); And my browser shows: Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in
I'ld focus on the SMTP server. It probably is configured to prevent abuse by spammers. Spammers like to make fake From: addresses. Contact your Internet Service Provider if the SMTP server is on their machine. Ask them if they can allow PHP mail requests from your site number without this limitation. If you pay for the server, they should allow that.
If your own computer is running all day, consider installing your own SMTP server (make sure to limit the IP addresses it accepts or you will be abused by spammers yourself).
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php