Error sending test email

When I test sending email I get the message below:

Failed to send test email to ‘user@mydomain.com’: gomail: could not send email 1: NewClient:tls:first record does not look like a TLS hand.

My configuration is as follows:

vi /etc/gitea/app.ini

[mailer]                                                                                                                                 
PASSWD         = mypasswd                                                                                     
ENABLED        = true                                                                                                                    
FROM           = mymail@domain.com                                                                 
USER           = mymail@domain.com                                                                                         
HOST           = smtp.domain.com:465                                                                                      
MAILER_TYPE    = smtp                                                                                                                    
IS_TLS_ENABLED = true 

I used the links below:

https://discourse.gitea.io/t/solved-problems-configuring-gmail/2003
https://github.com/go-gitea/gitea/issues/10971

1 Like