Re: mail()

From: Date: Mon, 16 Feb 2004 11:33:49 +0000
Subject: Re: mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177793@lists.php.net to get a copy of this message
Hello, On 02/16/2004 08:26 AM, Juan Torres wrote:
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 c:\inetpub\wwwroot\projects_php\testing\email\default.php on line 21 Why? Can anybody help me?
This means that you need to authenticate to send messages using that server. The mail function does not support authentication. You may want to try this class that comes with a wrapper function named smtp_mail() that can replace the mail() function but also let you specify the user name and password for authenticating with your SMTP server: http://www.phpclasses.org/mimemessage You also need this: http://www.phpclasses.org/smtpclass -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html

« previous php.general (#177793) next »