This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 3476

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: 3476

You are right, is it relaying.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

That's what I thought.
 
Consider Paul's rocket mass heater.
 
subject: Not able to run JavaMail class
 
Similar Threads
Help me to run my first JavaMail app
Using Java Mail Could not connect to SMTP Host
First Problem with JavaMail, help please
Help me please, JavaMail
JavaMail AuthenticationFailedException