Hello,

On 11/10/2004 10:36 AM, Garth Hapgood - Strickland wrote:
Im using the php mail() function to try send an email to a user that has
just registered.

mail($HTTP_POST_VARS['emailaddress1'], 'Matchmakers Website Registration' ,
'Welcome');

But when I get the following error back.:
  Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
[EMAIL PROTECTED]

Can someone help me out, by telling me what it means or what Im doing wrong?

(Thank you Jason for the introduction! :-)

That means your SMTP server requires authentication to relay messages. The mail function does not support SMTP authentication.

Alternatively, you may want to try this class that comes with a wrapper function named smtp_mail(). It works like the mail() function but lets you specify the authentication user name and password.

http://www.phpclasses.org/mimemessage

You also need these two:

http://www.phpclasses.org/smtpclass

http://www.phpclasses.org/sasl


--

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