Getting SmtpException of "553 sorry, that domain isn't in my list of allowed rcpthosts" using SMTP
Posted by Van Glass on 15 March 2007 11:34 PM
Most SMTP servers are configured in a way that without proper authentication they will only relay mail for the domains that they host. If you try to send an email to an outside domain without first authenticating with the server you will likely get this error or something similar.

To authenticate with an SMTP server invoke the Smtp.connect() method followed by Smtp.login(username,password);



You may then send emails to domains outside those hosted by the SMTP server.
(136 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
Help Desk Software by Kayako fusion