diff --git a/adminmailer/config.go.example b/adminmailer/config.go.example index ec3e14d3..731275ee 100644 --- a/adminmailer/config.go.example +++ b/adminmailer/config.go.example @@ -4,6 +4,7 @@ const RecvAddress = "admin@example.com" const RecvName = "Admin" const FromName = "From Name" const FromAddress = "from@address.com" -const FromAddressPassword = "password" +const ServerUsername = "username" +const ServerPassword = "password" const ServerAddress = "server.address" const ServerPort = 587 diff --git a/adminmailer/main.go b/adminmailer/main.go index 05d310a4..dff49b86 100644 --- a/adminmailer/main.go +++ b/adminmailer/main.go @@ -46,7 +46,7 @@ func sendMail(toAddress, toName, subject, contentHtml string) error { ) return smtp.SendMail( fmt.Sprintf("%s:%d", ServerAddress, ServerPort), - smtp.PlainAuth("", FromAddress, FromAddressPassword, ServerAddress), + smtp.PlainAuth("", ServerUsername, ServerPassword, ServerAddress), FromAddress, []string{toAddress}, contents,