mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
20 lines
314 B
Go
20 lines
314 B
Go
package email
|
|
|
|
import "testing"
|
|
|
|
|
|
// 自行替换测试账户信息
|
|
func TestMail_Email(t *testing.T) {
|
|
ma := Mail{
|
|
Host: "smtp.163.com",
|
|
Port: 25,
|
|
From: "x@163.com",
|
|
Nickname: "x",
|
|
Secret: "x",
|
|
IsSSL: false,
|
|
}
|
|
|
|
email := ma.Email("xx@163.com", "ceshi", "ceshibody")
|
|
t.Log(email)
|
|
}
|