mirror of
https://github.com/wahyd4/diun.git
synced 2026-08-08 21:06:05 +10:00
Set gomail.Dialer LocalName
This commit is contained in:
@@ -362,6 +362,7 @@ func TestLoadMixed(t *testing.T) {
|
||||
"DIUN_NOTIF_MAIL_INSECURESKIPVERIFY=true",
|
||||
"DIUN_NOTIF_MAIL_FROM=diun@foo.com",
|
||||
"DIUN_NOTIF_MAIL_TO=webmaster@foo.com",
|
||||
"DIUN_NOTIF_MAIL_LOCALNAME=foo.com",
|
||||
},
|
||||
expected: &config.Config{
|
||||
Db: (&model.Db{}).GetDefaults(),
|
||||
@@ -372,7 +373,7 @@ func TestLoadMixed(t *testing.T) {
|
||||
Port: 25,
|
||||
SSL: utl.NewFalse(),
|
||||
InsecureSkipVerify: utl.NewTrue(),
|
||||
LocalName: "localhost",
|
||||
LocalName: "foo.com",
|
||||
From: "diun@foo.com",
|
||||
To: "webmaster@foo.com",
|
||||
},
|
||||
|
||||
@@ -135,6 +135,7 @@ Need help, or have questions? Go to https://github.com/crazy-max/diun and leave
|
||||
Password: password,
|
||||
SSL: *c.cfg.SSL,
|
||||
TLSConfig: tlsConfig,
|
||||
LocalName: c.cfg.LocalName,
|
||||
}
|
||||
|
||||
return dialer.DialAndSend(msg)
|
||||
|
||||
Reference in New Issue
Block a user