PureBasic
SMTP Examples for PureBasic
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 an Inline Image from Memory
- Send HTML Email with CSS as a Related Item (Content-ID)
- Send HTML Email with CSS as a Related Item (Content-Location)
- Send HTML Email with an Inline Image (Content-ID)
- Send Email with a vCard
- Create Non-Multipart Email with XML Body that is an Attachment
SSL/TLS and Authentication
- Gmail SMTP: Send with OAuth2 on Port 465
- Send email using SMTP STARTTLS.
- Send email using SSL (port 465).
- SMTP Enable TLS 1.3
- SMTP NTLM Authentication
Gmail, Outlook.com and Microsoft 365
- Outlook.com SMTP: Send Email with OAuth2
- Microsoft 365 SMTP: Send Email with OAuth2
- Outlook.com SMTP: Replace Password Login with OAuth2
- Gmail SMTP: Send with an App Password on Port 587
OAuth2 Authentication
- Outlook.com: Obtain Mail OAuth2 Tokens with Desktop PKCE
- Outlook.com: Refresh Mail OAuth2 Tokens
- Microsoft 365: Obtain Mail OAuth2 Tokens with Desktop PKCE
- Microsoft 365: Refresh Mail OAuth2 Tokens
- Gmail SMTP, IMAP, and POP3: Obtain an OAuth2 Token
- Gmail SMTP: Send Email with OAuth2
- Gmail SMTP, IMAP, and POP3: Refresh an OAuth2 Token
- Gmail SMTP: Legacy Workspace Service Account P12 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