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("[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
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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to