mirror of https://github.com/statping/statping
emailer tests
parent
1afd8f01e1
commit
389182b944
|
@ -221,6 +221,7 @@ func (u *email) OnSave() error {
|
||||||
func (u *email) OnTest() error {
|
func (u *email) OnTest() error {
|
||||||
host := fmt.Sprintf("%v:%v", u.Host, u.Port)
|
host := fmt.Sprintf("%v:%v", u.Host, u.Port)
|
||||||
dial, err := smtp.Dial(host)
|
dial, err := smtp.Dial(host)
|
||||||
|
dial.StartTLS(&tls.Config{InsecureSkipVerify: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Log(3, err)
|
utils.Log(3, err)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue