Debugging on sending email
I use Java mail based mail packages, Spring and Seam, to send email out. Followed the normal procedure, the email seems to be sent. But, the recipient never received the email. I am wondering how I can debug the problem. The SMTP host is configured to the local cable email host and it is correct. I turn up the debugging on javax.mail. But not any message shows up.
Thanks in advance.
w.
# 1
Explain "not any message shows up".
If you can't find where the debug output is being written, you can
tell JavaMail to write the debug output to a stream of your choice.
You really need to see the debug output.
Also, make sure no exceptions are being through when you send
the message. Put the send call inside a try/catch block.
# 3
Then you need to look at the protocol trace.If the server is accepting the message and not delivering it,your issue is with the server, not JavaMail. Check your serverlogs and/or talk to your mail server administrator.