Java
SMTP Examples for Java
- Send a Simple Email
- Send Email With Attachments
- Send HTML Email with Attachments
- Send Email with hotmail.com, live.com, or outlook.com
- Send HTML Email with Image to iPhone
- Get GMail SMTP OAuth2 Access Token for Desktop App
- GMail SMTP Send using Previously Obtained OAuth2 Access Token
- Refresh GMail SMTP OAuth2 Access Token
- Send email using smtp.gmail.com with SSL (port 465).
- Send email using SMTP STARTTLS.
- Send email using SSL (port 465).
- Send Email using office365 SMTP
- Send a Simple HTML Email
- Embed Image in HTML Email
- SMTP using HTTP Proxy
- Load EML and Send
- Sending S/MIME Encrypted Email
- Send Signed Email using PFX File
- Send Signed Email using PFX File (long version)
- SMTP using SOCKS5, SOCKS4 Proxy
- Send Email with a vCard
- Send High Priority Email (SMTP, X-Priority header)
- Send Signed and Encrypted EDI Email (EDIFACT)
- Send Encrypted Email to Multiple Recipients
- Send Email and Put Copy in "Sent" Folder
- SMTP SSH Tunneling (Port Forwarding)
- Send Email Asynchronously using a Task
- SMTP over Multiple Hop SSH
- Send HTML Email with Embedded Image Loaded from Memory
- Send HTML Email with External CSS as Related Item
- Send HTML Email with CSS as Related Item using Content-Location
- Send a Signed Email using RSASSA-PSS with SHA256
- Send Encrypted Email using RSAES-OAEP with AES-128 CBC and SHA256
- OAuth2 for a GMail using a Service Account Key
- SMTP XOAUTH2 Authentication
- Send Email using smtp-mail.outlook.com with Password Authentication
- SMTP Enable TLS 1.3
- Send Email to Distribution List
- GMail SMTP port 587 with "less secure" Password Authentication
- SMTP NTLM Authentication
- Create Non-Multipart Email with XML Body that is an Attachment
- Send Email with Multiple Reply-To Addresses
- Send aes-gcm authEnvelopedData Encrypted Email