Troubleshooting

SMTP Problems

My SMTP server tells me that it won't forward a message.

Either the sender or the recipient of the message must belong to the same domain as the SMTP server, or at least the computer you're running your program on must be in the same domain. Forwarding usually invites spammers to forward spam through your server.

Q1:If I try to send mail with a sender that doesn't exist, why won't Java Mail let it through?
Java Mail checks the sender to make sure it is a valid email address. If you really need to send such mail, use the SMTPSession class.

Java Mail Problems

Q1:Why do I get a ClassNotFoundException for javax.activation.DataSource when I try to use the Java Mail API?
The Java Mail API also needs the Java Beans Activation ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.