Gogs Mailer Configuration (ERROR)

Hi experts, I’m new here. I just need my help on setting up my mailer server please, so that i can send notifications every time theres changes on repo:
I have this et up on my app.ine
[mailer]
ENABLED = true
HOST = server:587
FROM = [email protected]
USER =
PASSWD =

Upon sending test email through gog GUI, im having this error “Fail to send test email to ‘[email protected]’: gomail: could not send email 1: dial tcp: lookup IPADD no such host”

Hi, the entire configuration you posted, which to me, seems should not work. You need a mail service provider (Gogs itself is not), e.g. mailgun.com.