diff --git a/go.mod b/go.mod index 79590b8..d32dbe1 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module code.yun.ink/pkg/mailx -go 1.19 +go 1.20 diff --git a/mailx_test.go b/mailx_test.go index 058eff2..a83ba62 100644 --- a/mailx_test.go +++ b/mailx_test.go @@ -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",