emailer tests

pull/78/head
Hunter Long 2018-10-07 01:40:42 -07:00
parent 1afd8f01e1
commit 389182b944
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ func (u *email) OnSave() error {
func (u *email) OnTest() error {
host := fmt.Sprintf("%v:%v", u.Host, u.Port)
dial, err := smtp.Dial(host)
dial.StartTLS(&tls.Config{InsecureSkipVerify: true})
if err != nil {
utils.Log(3, err)
return err