Update sendmail.go

Hey guys, great job! I found a small type in the environment variable `SMTP_VERITY_CERT`. Additionally, I would suggest to rename the variable to `SMTP_SKIP_VERIFY_CERT` because the action in `tlsconfig` can be more clearly understood, I think. What so you mean?
This commit is contained in:
Seb 2022-05-15 17:36:47 +02:00 committed by GitHub
parent 25265366d4
commit 8f2a331e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func (m *SendMailRequest) Execute() error {
// TLS config // TLS config
tlsconfig := &tls.Config{ tlsconfig := &tls.Config{
InsecureSkipVerify: viper.GetBool("SMTP_VERITY_CERT"), InsecureSkipVerify: viper.GetBool("SMTP_SKIP_VERIFY_CERT"),
ServerName: smtpServerHost, ServerName: smtpServerHost,
} }