# SMTP Custom Email provider: "From" address not used

**URL:** <https://community.auth0.com/t/smtp-custom-email-provider-from-address-not-used/78774>\
**Category:** Get Help\
**Tags:** smtp, email\
**Created:** [February 23, 2022, 1:54pm UTC](https://community.auth0.com/t/smtp-custom-email-provider-from-address-not-used/78774 "2022-02-23T13:54:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.beznik](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thomas.beznik/32/13837_2.png) [@thomas.beznik](https://community.auth0.com/u/thomas.beznik)\
**Post date:** [February 23, 2022, 1:54pm UTC](https://community.auth0.com/t/smtp-custom-email-provider-from-address-not-used/78774/1 "2022-02-23T13:54:15Z")

</div>

Hello !

I’m trying to setup a custom email provider through SMTP, with Gmail. The mails are successfully sent, but they use the email address of the “Username” instead of the “From” one… How can I fix this ? Thanks!

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [February 24, 2022, 12:08am UTC](https://community.auth0.com/t/smtp-custom-email-provider-from-address-not-used/78774/3 "2022-02-24T00:08:10Z")

</div>

Hi @thomas.beznik,

Welcome back to Auth0 Community!

I am looking into this query and will get back to you soon.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [February 24, 2022, 8:54pm UTC](https://community.auth0.com/t/smtp-custom-email-provider-from-address-not-used/78774/4 "2022-02-24T20:54:49Z")

</div>

Hi @thomas.beznik ,

I tested SMTP Gmail provider [smtp.gmail.com](http://smtp.gmail.com) and could repeat the same. The email was sent from the email address in the “username” field, not the “From” field.

I believe this is the expected behavior as of the current design form SMTP Gmail provider.

Please feel free to raise a feature request on our community feedback page. Hope we can attract more votes to get this implemented soon.

If you need the email to be extracted from the “From” field, you may use such as [smtp.mailtrap.io](http://smtp.mailtrap.io), for which the username is not email address though.

Please feel free to reach us if any other queries. Thanks!

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [May 12, 2022, 6:38pm UTC](https://community.auth0.com/t/smtp-custom-email-provider-from-address-not-used/78774/5 "2022-05-12T18:38:58Z")

</div>


