# Email does not work; Net::SMTPAuthenticationError

**URL:** <https://meta.discourse.org/t/email-does-not-work-net-smtpauthenticationerror/317828>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [July 23, 2024, 12:48pm UTC](https://meta.discourse.org/t/email-does-not-work-net-smtpauthenticationerror/317828 "2024-07-23T12:48:44Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![wal](https://avatars.discourse-cdn.com/v4/letter/w/d6d6ee/32.png) [@wal](https://meta.discourse.org/u/wal)\
**Post date:** [July 23, 2024, 8:45pm UTC](https://meta.discourse.org/t/email-does-not-work-net-smtpauthenticationerror/317828/10 "2024-07-23T20:45:14Z")

</div>

its working now, thanks all for the help 🙂

the solution was to use

```plaintext
  DISCOURSE_SMTP_USER_NAME: mail@mg.mydomain.com

```

instead of

```plaintext
  DISCOURSE_SMTP_USER_NAME: mail

```

---

_[View the full topic](https://meta.discourse.org/t/email-does-not-work-net-smtpauthenticationerror/317828)._
