Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to run JavaMail class

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure it said "replying denied"? I ask because "relaying" is mentioned in the JavaMail FAQ.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right, is it relaying.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what I thought.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic