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 IamaSherpa 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.

ajoce

Programmer
Aug 4, 2003
14
PH
Need Help...

I have a simple JavaMail code that sends a plain text message to a particular email address. I am doing this because of testing purposes. I am getting an error :

javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: 572 SPAWN a domain name must be specified

at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at mine.mail.SendMail.postMail(SendMail.java:62)
at mine.mail.SendMail.main(SendMail.java:30)
Exception in thread "main"

anyone here knows what seems to be the problem?

Thank you in advance.
 
by the way, SPAWN in the error message is just the senders address. so it was declared in message.setFrom("SPAWN").

thank you. please help..
 
I got it already. Sorry for the posts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top