Javamail from Tomcat
Hello. I have a servlet that must send an email after some data has been processed.
I'm my method sendMail(....) i send this mail.
The method sendMail works perfectly. If I test the method in isolation everything works fine and the mail is sent.
The problem that, in the servlet, the method simply does nothig.
No exceptions are thrown. In the method, at a certain point, i do:
System.out.println("Sending mail");
SMTPTransport.send(message);
System.out.println("Mail sent");
.....
I invoke the servlet and the output is:
Sending mail.. and immediately after MailSent. When i test the method in isolation it takes a little bit of time before the message is sent and "mail sent" is prompted. It's like SMTPTransport returns immediately without sending the mail and without raising any exception.... It's too weird!!! pleas help
Thanks and sorry for my english

