Guide to Send Emails in Java

This post will introduce main options for sending emails from Java apps. While Java Mail (which is now Jakarta Mail) is the main package, Simple Java Mail, Spring Framework, and Apache Commons Email also deserve your attention. See the code samples to understand which one works for you.