hi,
I have a
java program for sending mail.I am using gmail snmp for sending mail. Works absolutely fine.
Now I thought of using the same program (code) to send mail from
JSP. Everything runs fine till it tries to send mail using
Transport.send(msg);
where as same thing runs fine in java.
Not able to figure out what and where I am incorrect.
error:
Sending failed; nested exception is:
class javax.mail.AuthenticationFailedException
Note: cannot be an authentication error as same working fine in java program.