深化smtp文件的支持
This commit is contained in:
@@ -21,7 +21,7 @@ func TestSmtpEnhanced(t *testing.T) {
|
||||
}
|
||||
|
||||
// 测试不完整配置
|
||||
_, err = smtp.SetOption(ctx, func(opt *interfaces.EmailOption) {
|
||||
_, err = smtp.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
opt.Smtp = &interfaces.EmailConfigDataSmtp{
|
||||
Host: "smtp.example.com",
|
||||
// 缺少用户名和密码
|
||||
@@ -32,7 +32,7 @@ func TestSmtpEnhanced(t *testing.T) {
|
||||
}
|
||||
|
||||
// 测试完整配置
|
||||
_, err = smtp.SetOption(ctx, func(opt *interfaces.EmailOption) {
|
||||
_, err = smtp.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
opt.Smtp = &interfaces.EmailConfigDataSmtp{
|
||||
Host: "smtp.example.com",
|
||||
Port: "587",
|
||||
@@ -51,7 +51,7 @@ func TestMessageValidation(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
|
||||
// 设置有效配置
|
||||
smtp.SetOption(ctx, func(opt *interfaces.EmailOption) {
|
||||
smtp.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
opt.Smtp = &interfaces.EmailConfigDataSmtp{
|
||||
Host: "smtp.example.com",
|
||||
Port: "587",
|
||||
|
||||
Reference in New Issue
Block a user