# Mailer not working

**URL:** <https://forum.gitea.com/t/mailer-not-working/6196>\
**Category:** Install/Maintain/Configure\
**Created:** [November 6, 2022, 7:48am UTC](https://forum.gitea.com/t/mailer-not-working/6196 "2022-11-06T07:48:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mootfrost777](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mootfrost777/32/3193_2.png) [@Mootfrost777](https://forum.gitea.com/u/Mootfrost777)\
**Post date:** [November 6, 2022, 7:48am UTC](https://forum.gitea.com/t/mailer-not-working/6196/1 "2022-11-06T07:48:06Z")

</div>

I have created my own mail on my domain and I want to set up a mailer in getea. My configuration:

```auto
[mailer]
ENABLED = true
SMTP_ADDR = smtp.yandex.ru
SMTP_PORT = 465
FROM = xxx@xxx.ru
USER = xxx@xxx.ru
PASSWD = xxx
PROTOCOL = smtps
HELO_HOSTNAME = xxx.ru

```

When trying to send a test email, error 502. I also tried an example from the documentation for gmail, it doesn’t work. What am I doing wrong?
