How do I correct getting a SendFailedException, 553 NOT A LOCAL DOMAIN error?

John Zukowski

This error has to do with the configuration of your mail server and has nothing to do with how you are using the JavaMail API. Correct the mail server configuration and your program will work fine.

How to configure your mail server depends on what mail server you are using.