mail.EncryptionTLS is deprecated and is the same like mail.EncryptionSTARTTLS The correct here is mail.EncryptionSSLTLS