Java – Send Email from Java Program – Java Mail API – (Gmail Example – 2019)
In this video, we will see how to send email from your java program. We will use Java Mail API for sending emails. Java mail API can send email in text format or HTML format. If you would like to style an html email, you can add embedded CSS.
Gmail SMTP Host: smtp.gmail.com
Gmail SMTP Port: 587
Download Java Mail API: https://javaee.github.io/javamail/
Enable signin from less secure apps in Gmail: https://myaccount.google.com/security
#GenuineCoder
#Java
by Genuine Coder
linux smtp server