This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.mail.MessagingException: 501 5.1.7 Invalid address  RSS feed

 
Romeo Ranjan
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to send email from my code using java mail. Here is the code snippet



The exception that I get is


I understand that the SendFailedException for invalid address might occur if the address may not exists which is not true-its my company mail address that I use. There might be a invalid syntax-no problem withthe syntax of the address..

I am not able to figure out the reason for the issue..Can someone please help me?

Thanks



 
Paul Clapham
Sheriff
Posts: 22487
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would start with the obvious. You've provided an invalid address (either the "from" address, or one of the recipient addresses). So look at those addresses. Post them here if you don't see what's invalid about them.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!