# Error when trying to send an email

**URL:** <https://forum.gitea.com/t/error-when-trying-to-send-an-email/11864>\
**Category:** Install/Maintain/Configure\
**Created:** [December 19, 2025, 4:04pm UTC](https://forum.gitea.com/t/error-when-trying-to-send-an-email/11864 "2025-12-19T16:04:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zisiszikos](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/zisiszikos/32/7235_2.png) [@zisiszikos](https://forum.gitea.com/u/zisiszikos)\
**Post date:** [December 19, 2025, 4:04pm UTC](https://forum.gitea.com/t/error-when-trying-to-send-an-email/11864/1 "2025-12-19T16:04:02Z")

</div>

I have installed Gitea 1.25.0 to my Synology NAS from the package at the package center app.

I am trying to setup the mailer in order to activate my account, but I have tried every possible way of writing the settings and I still get this error:

> Failed to send a testing email to “aaaa@gmail.com”: failed to issue MAIL command: 555 5.5.2 Syntax error, cannot decode response. For more information, go to 5.5.2 ht\*ps://support.google.com/a/answer/3221692 and review RFC 5321 5.5.2 specifications. 5b1f17b1804b1-47be273f147sm104140005e9.7 - gsmtp

My current setup is this:

> [mailer]  
> ENABLED = true  
> SMTP\_ADDR = smtp.gmail,com  
> SMTP\_PORT = 465  
> FROM = aaaa@gmail,com  
> USER = aaaa@gmail,com  
> PASSWD = abcde  
> PROTOCOL = smtps

( **gmail,com** is written like that because the forum doesn’t allow me to have links in my post)

Any idea what is going on?

---

<div class="post-metadata">

**Author:** ![exyone](https://avatars.discourse-cdn.com/v4/letter/e/7feea3/32.png) [@exyone](https://forum.gitea.com/u/exyone)\
**Post date:** [December 28, 2025, 6:34am UTC](https://forum.gitea.com/t/error-when-trying-to-send-an-email/11864/2 "2025-12-28T06:34:40Z")

</div>

hi,bro.nice to meet you:  
gmail’s imap and pop3 address is gmail,com,it’s right.  
but gmail’s smtp address in fact is **smtp.googlemail,com.**  
most people in this forum are chinese,so they don’t use gmail.  
and therefore don’t notice this detail.  
i hope i can help you.🤭

---

<div class="post-metadata">

**Author:** ![Ethena\_Casper](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Ethena\_Casper](https://forum.gitea.com/u/Ethena_Casper)\
**Post date:** [March 15, 2026, 11:29am UTC](https://forum.gitea.com/t/error-when-trying-to-send-an-email/11864/3 "2026-03-15T11:29:40Z")

</div>

That error often shows up when the SMTP settings aren’t fully matching what the mail provider expects. It might be worth double-checking the port, encryption type (TLS/SSL), and the FROM address in the config. I’ve also seen cases where the provider blocks the connection until “less secure app” access or an app password is enabled.
