I am writing code to send an email using
java mail API. It has an attached excel sheet.
I have put mail sending code say SendMail.java in separate file and calling it fom a
jsp when a button is clicked by user.
for
testing purpose i had put a main method in SendMail.java
which is sending mail pefectly well.
However when i actually execute my code, click on button, i get below exception:
below is my code:
and here is jsp i am calling from:
In addition, i tried to telnet my mail host ...
it connect successfully there ....
please help me get rid of this.....