Re: mail()

From: Date: Mon, 16 Feb 2004 11:34:32 +0000
Subject: Re: mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177792@lists.php.net to get a copy of this message
At 12:26 16-2-04, you wrote:
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("jto_star@yahoo.es", "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 jto_star@yahoo.es 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).

« previous php.general (#177792) next »