【文件属性】:
文件名称:aws-email:通过AWS SES构建和发送电子邮件
文件大小:12KB
文件格式:ZIP
更新时间:2021-04-08 04:18:34
golang aws email aws-sdk-go aws-ses
通过AWS SES发送电子邮件的软件包
介绍
通过AWS SES发送电子邮件
从本地通过S3存储桶或通过HTTP获取附件
同时支持文本/纯文本和文本/ html电子邮件
例子
package main
import (
"context"
email "github.com/gofor-little/aws-email"
)
func main () {
// Initialize the email package.
if err := email . Initialize ( "AWS_PROFILE" , "AWS_REGION" ); err != nil {
panic ( err )
}
// Build the email data.
data := email. Data {
To : [] string { "joe@example
【文件预览】:
aws-email-main
----.gitignore(305B)
----go.mod(424B)
----LICENSE(1KB)
----go.sum(4KB)
----.github()
--------workflows()
--------dependabot.yml(145B)
----attachment.go(3KB)
----clients.go(1KB)
----README.md(2KB)
----email.go(2KB)
----tests()
--------integration()
--------unit()
----content_type.go(337B)
----data.go(468B)