Skip to content

Commit

Permalink
send email test
Browse files Browse the repository at this point in the history
  • Loading branch information
luhaoling committed Nov 3, 2023
1 parent f480f25 commit ff39fd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ verifyCode:
verificationCodeTemplateCode: ""
mail: # 根据对应的发件邮箱更改 sendMail、senderAuthorizationCode、smtpAddr、smtpPort 即可
title: ""
senderMail: "[email protected]" # 发送者
senderAuthorizationCode: "lvxhehnmlcfrebab" # 授权码
senderMail: "" # 发送者
senderAuthorizationCode: "" # 授权码
smtpAddr: "smtp.qq.com" # smtp 服务器地址
smtpPort: 25 # smtp 服务器邮件发送端口
testDepartMentID: 001
Expand Down
2 changes: 1 addition & 1 deletion pkg/email/mail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestEmail(T *testing.T) {
{
name: "success send email",
ctx: context.Background(),
mail: "lmf91248@gmail.com",
mail: "test@gmail.com",
code: "5555",
want: errors.New("nil"),
},
Expand Down

0 comments on commit ff39fd2

Please sign in to comment.