This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Not able to run JavaMail class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Not able to run JavaMail class" Watch "Not able to run JavaMail class" New topic
Author

Not able to run JavaMail class

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hi.
Here is my code :

To run the class, I wrote :
java SendMail smtp.google.com johntodd@gmail.com john.todd@gmail.com
But I got the following exception :
nested exception :
javax.mail.SendFailedException : invalid addresses
nested :
javax.mail.SendFailedException : 550.5.7.1 johntodd@gmail.com
replying denied.
IP name lookup failed
Any ideas ?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Are you sure it said "replying denied"? I ask because "relaying" is mentioned in the JavaMail FAQ.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

You are right, is it relaying.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

That's what I thought.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Not able to run JavaMail class