质量优化

This commit is contained in:
ryan
2026-06-10 13:42:15 +08:00
parent 3ed4dec4a3
commit 57944398e6
27 changed files with 155 additions and 111 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ package mail
import (
"bufio"
"context"
"net"
"net/textproto"
"testing"
@@ -84,7 +85,7 @@ func TestSendMailMock(t *testing.T) {
Password: "password",
}
err = SendMail(cfg, "recipient@example.com", "Test Subject", "<h1>Test Body</h1>")
err = SendMail(context.Background(), cfg, "recipient@example.com", "Test Subject", "<h1>Test Body</h1>")
if err != nil {
t.Errorf("failed to send mail: %v", err)
}