Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaMail

Status
Not open for further replies.

cajchris

Programmer
Oct 13, 2005
57
GB
I am writing some functionality for a site which deals with newsletters, and the sending of them to their subscribers. When an email is successfully sent the subscriber entry in a file is checked as sent, however if one is not sent, how can i determine between different error codes for smpt. such as the server being down, incorrect email address of any other error for that matter, as i will need to flag these subscibers accordingly.

thanks
cajchris
 
This all depends on which MTA you are using - JavaMail is not an MTA in itself.

For example, if you know that joe@bloggs.com 's MX server is smtpin.bloggs.com for example, then if you send a mail directly, and there is an error, then you will see that error - however if you are not sending to the recipients own MX server, then (as is usual) you are using some other MTA, you will not be able to retrieve error codes.

You need to say more about how you are using JavaMail.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
MTA = Mail Transfer Agent
MX = Mail eXchanger (as in MX records for domain names)

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top