Allow to set the hostname sent to the SMTP server with the HELO command for mail notification (#165)

This commit is contained in:
CrazyMax
2020-08-28 22:01:46 +02:00
parent 6196db1538
commit b0f4f42213
3 changed files with 6 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ func TestLoadFile(t *testing.T) {
Port: 25,
SSL: utl.NewFalse(),
InsecureSkipVerify: utl.NewFalse(),
LocalName: "localhost",
From: "diun@example.com",
To: "webmaster@example.com",
},
@@ -371,6 +372,7 @@ func TestLoadMixed(t *testing.T) {
Port: 25,
SSL: utl.NewFalse(),
InsecureSkipVerify: utl.NewTrue(),
LocalName: "localhost",
From: "diun@foo.com",
To: "webmaster@foo.com",
},