mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-08 15:52:25 +08:00
21 lines
391 B
Go
21 lines
391 B
Go
// Package logd provides ...
|
|
package logd
|
|
|
|
import "testing"
|
|
|
|
func TestSmtpSendMail(t *testing.T) {
|
|
s := &Smtp{
|
|
From: "120735581@qq.com",
|
|
Key: "peerdmnoqirqbiaa",
|
|
Host: "smtp.qq.com",
|
|
Port: "465",
|
|
To: []string{"a120735581@foxmail.com"},
|
|
Subject: "test email from logd",
|
|
}
|
|
|
|
err := s.SendMail("test", []byte("hello world"))
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
}
|