Hello I’m having trouble with my gmail config:
I get this when testing the config
Failed to send a testing email to ‘riccardo@rotostampa.com’: gomail: could not send email 1: NewClient: tls: first record does not look like a TLS handshake
My config:
[mailer]
ENABLED = true
FROM = workflow.sender@gmail.com
MAILER_TYPE = smtp
HOST = smtp.gmail.com:587
IS_TLS_ENABLED = true
USER = workflow.sender@gmail.com
PASSWD = `...`
USE_SENDMAIL = false
I’m running gitea on kubernetes using gitea/gitea:1.10.4, but I have the same problem using gitea/gitea:latest
Is there a way to know if this is a bug? how am I supposed to fix this? this doesn’t look normal:
gomail: could not send email 1: NewClient: tls: first record does not look like a TLS handshake
and the configuration is the same of what is documented online.
This may be related to #7966 and/or #5967
but i’m using TLS in my configuration
those 2 issues are about a configuration with
IS_TLS_ENABLED = false
which is not my case
Should I open an issue on github for this? thanks.
My apologies, yes please open an issue. Hopefully someone with more knowledge of the mailer can sort it out. 
I got working
IS_TLS_ENABLED = false
PASSWD = `password`
Important was to use ` around password and turn on less secure apps.
1 Like