1 Star 1 Fork 1

up-zero/gotool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mail_test.go 309 Bytes
一键复制 编辑 原始数据 按行查看 历史
GetcharZp 提交于 2023-08-25 11:35 +08:00 . feat mail
package gotool
import "testing"
func TestMail_SendMail(t *testing.T) {
m := Mail{
Username: "用户名",
Password: "密码",
Addr: "smtp.exmail.qq.com:465",
From: "name@example.com",
}
err := m.SendMail([]string{"getcharzp@qq.com"}, "title", "content")
if err != nil {
t.Log(err)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/up-zero/gotool.git
git@gitee.com:up-zero/gotool.git
up-zero
gotool
gotool
main

搜索帮助