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?
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com