From 5ac45b7a4f8ecfc09cccf135a8b2dcf06a9d19fd Mon Sep 17 00:00:00 2001 From: Santiago De la Cruz <51337247+xhit@users.noreply.github.com> Date: Thu, 29 Apr 2021 12:53:03 -0400 Subject: [PATCH] Fix email encryption type SSL/TLS mail.EncryptionTLS is deprecated and is the same like mail.EncryptionSTARTTLS The correct here is mail.EncryptionSSLTLS --- internal/common/email.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/common/email.go b/internal/common/email.go index bb35449..c72f667 100644 --- a/internal/common/email.go +++ b/internal/common/email.go @@ -61,7 +61,7 @@ func SendEmailWithAttachments(cfg MailConfig, sender, replyTo, subject, body, ht } switch cfg.Encryption { case MailEncryptionTLS: - srv.Encryption = mail.EncryptionTLS + srv.Encryption = mail.EncryptionSSLTLS case MailEncryptionStartTLS: srv.Encryption = mail.EncryptionSTARTTLS default: // MailEncryptionNone