This commit is contained in:
Yun
2024-04-12 15:30:23 +08:00
parent a72e781417
commit 0b2084757b
2 changed files with 8 additions and 7 deletions
+7 -6
View File
@@ -2,8 +2,9 @@ package mailx_test
import (
"fmt"
"statistic/app/pkg/mailx"
"testing"
"code.yun.ink/pkg/mailx"
)
func TestMail(t *testing.T) {
@@ -11,11 +12,11 @@ func TestMail(t *testing.T) {
msg := mailx.Message{
// Form: "support@email.blueoceanpay.com",
To: []string{"yun@blueoceanpay.com", "995116474@qq.com"},
Cc: []string{"287852692@qq.com"},
Bcc: []string{"1362716835@qq.com"},
Subject: "test mail",
Body: "测试文件",
To: []string{"yun@blueoceanpay.com", "995116474@qq.com"},
Cc: []string{"287852692@qq.com"},
Bcc: []string{"1362716835@qq.com"},
Subject: "test mail",
Body: "测试文件",
Attachment: []mailx.Attachment{
// {
// Name: "/code/statistic/out.xlsx",