mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: support optional SMTP auth (#14533)
This commit is contained in:
@ -203,7 +203,6 @@ func TestSMTP(t *testing.T) {
|
||||
retryable: false,
|
||||
},
|
||||
{
|
||||
// No auth, no problem!
|
||||
name: "No auth mechanisms supported, none configured",
|
||||
authMechs: []string{},
|
||||
cfg: codersdk.NotificationsEmailConfig{
|
||||
@ -213,6 +212,16 @@ func TestSMTP(t *testing.T) {
|
||||
toAddrs: []string{to},
|
||||
expectedAuthMeth: "",
|
||||
},
|
||||
{
|
||||
name: "Auth mechanisms supported optionally, none configured",
|
||||
authMechs: []string{sasl.Login, sasl.Plain},
|
||||
cfg: codersdk.NotificationsEmailConfig{
|
||||
Hello: hello,
|
||||
From: from,
|
||||
},
|
||||
toAddrs: []string{to},
|
||||
expectedAuthMeth: "",
|
||||
},
|
||||
/**
|
||||
* TLS connections
|
||||
*/
|
||||
|
Reference in New Issue
Block a user