调整SetOptions的方式
This commit is contained in:
+4
-4
@@ -18,7 +18,7 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
// 使用em进行后续操作
|
||||
em,err = em.SetOption(ctx, interfaces.SetSmtp(&interfaces.EmailConfigDataSmtp{
|
||||
err = em.SetOption(ctx, interfaces.SetSmtp(&interfaces.EmailConfigDataSmtp{
|
||||
Username: "support@email.blueoceanpay.com",
|
||||
Password: "SupporT2017",
|
||||
ReplyTo: "",
|
||||
@@ -30,10 +30,10 @@ func main() {
|
||||
}
|
||||
|
||||
err = em.Send(ctx, interfaces.Message{
|
||||
Form: "yun@blueoceanpay.com",
|
||||
To: []string{"995116474@qq.com"},
|
||||
Form: "yun@blueoceanpay.com",
|
||||
To: []string{"995116474@qq.com"},
|
||||
Subject: "Test Email",
|
||||
Body: "Hello, this is a test email.",
|
||||
Body: "Hello, this is a test email.",
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user