# Email https://www.courier.com/guides/golang-send-email/ 有三種 ## smtp 當您需要發送不需要大量配置的非常基本的電子郵件時,SMTP 包是理想的選擇。 gmail https://weizhe0422.github.io/2020/03/20/Golang-send-mail/ mailtrip https://dev.to/devkiran/how-to-send-an-email-with-golang-using-smtp-1ino ## Gomail 默認包 SMTP 可能會受到限制。例如,您不能在電子郵件中添加附件。Gomail 提供全面的功能,如 HTML 模板、嵌入圖像和自動編碼。要使用 Gomail,您需要 Go 1.2 或更新版本 ## 第三方電子郵件 API 服務 第三方電子郵件 API 服務(如SendGrid、Mailgun 和 Amazon Simple Email Service)具有專用平台,可讓您高效地發送大量電子郵件。 使用 SMTP 服務器,您可以以編程方式發送電子郵件。儘管如此,第三方 API 服務器仍允許您每天發送數万封可擴展、功能強大並提供後端分析的電子郵件。在大多數情況下,註冊帳戶後,您可以選擇使用 Web API 或 SMTP ## SES ###### tags: `Go`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up