1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-05 02:00:54 +00:00
Beego/logs/smtp_test.go
2013-08-27 23:49:04 +08:00

12 lines
271 B
Go

package logs
import (
"testing"
)
func TestSmtp(t *testing.T) {
log := NewLogger(10000)
log.SetLogger("smtp", `{"username":"xxxxxx@gmail.com","password":"xxxxxxx","host":"smtp.gmail.com:587","sendTos":["xiemengjun@gmail.com"]}`)
log.Critical("sendmail critical")
}