• Post Reply Bookmark Topic Watch Topic
  • New Topic

SendFailed Exception

 
Gaurav Chikara
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the following test program to send mail.It works fine inside the corporate network e-mail ids but when same program tries to send mail outside network like on gmail.com then it says that unable to relay for the e-mail address

Does any one has idea if it is due to bad code or some firewall issues
thanks








Exception is

 
Paul Clapham
Sheriff
Posts: 21872
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's in the JavaMail FAQ. You might want to have a look through the whole document while you're looking up your relaying question as it contains a lot of other interesting information.
 
Gaurav Chikara
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul
It helped a lot
I was not setting the mail.smtp.auth property to true prior to authenticating myself and Now I am able to send the message to external domains as well
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!