Re: php mail() error
| From: | Manuel Lemos | Date: | Wed, 10 Nov 2004 16:31:49 +0000 |
| Subject: | Re: php mail() error | ||
| References: | 1 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-201694@lists.php.net to get a copy of this message | ||
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 garth@redpoint.co.za 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