Re: Re: php mail() error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On 11/14/2004 04:11 AM, Curt Zirzow 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@xxxxxxxxxxxxxx

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.


for the record.. and to not mislead several people.. 550 simply
means the message was not accepted. There are several other reasons
why this will happen. The text after the 550 usually signifies what
exactly the problem is.

Yes, but 550 with the text in front of "5.7.1 Unable to relay for some@xxxxxxxxxxxxxx" is a common message presented by servers that only relay with prior authentication. If you had enough real world experience with SMTP servers you would know that.


Again.. a simple google search reveals the other issues that may be
involved.  Your tool's *may* solve the problem, but it isn't 100%

http://support.microsoft.com/default.aspx?scid=kb;en-us;q289553
<quote>
While there are several causes for this error, the most common one
is that there may be no recipient policy for the expected domain in
the Exchange 2000 organization or the Exchange 2003 organization.
</quote>

http://support.microsoft.com/?kbid=304897
http://www.eudora.com/techsupport/kb/1593hq.html

Man, try to learn this for once. It is standard for Microsoft SMTP servers to be configured by default to not allow relaying messages to foreign domains without requiring prior SMTP authentication. Although, it is possible that the problem may be slightly different, that is not the default, so it is unlikely that just performing SMTP authentication would not solve the problem.


Trust the voice of experience, it has been this way for years. Many people have already posted the same problem in this list since a long time ago and I have never heard of anybody that posted this same problem and used my classes with SMTP authentication without success.

I developed the smtp_mail() function wrapping these classes precisely to make the solution straightforward for the users that just have to make a minimal change from the mail() calls to smtp_mail(). I do not use Microsoft software. I developed this because I had many requests from Microsoft users.

Try it yourself on standard Microsoft SMTP server installation and you'll see.

http://www.phpclasses.org/mimemessage

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux