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