提交
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
module code.yun.ink/pkg/mailx
|
module code.yun.ink/pkg/mailx
|
||||||
|
|
||||||
go 1.19
|
go 1.20
|
||||||
|
|||||||
+7
-6
@@ -2,8 +2,9 @@ package mailx_test
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"statistic/app/pkg/mailx"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"code.yun.ink/pkg/mailx"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMail(t *testing.T) {
|
func TestMail(t *testing.T) {
|
||||||
@@ -11,11 +12,11 @@ func TestMail(t *testing.T) {
|
|||||||
|
|
||||||
msg := mailx.Message{
|
msg := mailx.Message{
|
||||||
// Form: "support@email.blueoceanpay.com",
|
// Form: "support@email.blueoceanpay.com",
|
||||||
To: []string{"yun@blueoceanpay.com", "995116474@qq.com"},
|
To: []string{"yun@blueoceanpay.com", "995116474@qq.com"},
|
||||||
Cc: []string{"287852692@qq.com"},
|
Cc: []string{"287852692@qq.com"},
|
||||||
Bcc: []string{"1362716835@qq.com"},
|
Bcc: []string{"1362716835@qq.com"},
|
||||||
Subject: "test mail",
|
Subject: "test mail",
|
||||||
Body: "测试文件",
|
Body: "测试文件",
|
||||||
Attachment: []mailx.Attachment{
|
Attachment: []mailx.Attachment{
|
||||||
// {
|
// {
|
||||||
// Name: "/code/statistic/out.xlsx",
|
// Name: "/code/statistic/out.xlsx",
|
||||||
|
|||||||
Reference in New Issue
Block a user