From 8f2a331e49e144fcb20f2a17c555a08754dbcf79 Mon Sep 17 00:00:00 2001 From: Seb <70687089+seb36273@users.noreply.github.com> Date: Sun, 15 May 2022 17:36:47 +0200 Subject: [PATCH] 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? --- sendmail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sendmail.go b/sendmail.go index e58c098..e85ceb2 100644 --- a/sendmail.go +++ b/sendmail.go @@ -78,7 +78,7 @@ func (m *SendMailRequest) Execute() error { // TLS config tlsconfig := &tls.Config{ - InsecureSkipVerify: viper.GetBool("SMTP_VERITY_CERT"), + InsecureSkipVerify: viper.GetBool("SMTP_SKIP_VERIFY_CERT"), ServerName: smtpServerHost, }