# Custom headers in e-mail

**URL:** <https://forum.mautic.org/t/custom-headers-in-e-mail/9270>\
**Category:** Product Support\
**Created:** [August 21, 2017, 6:13am UTC](https://forum.mautic.org/t/custom-headers-in-e-mail/9270 "2017-08-21T06:13:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yunbit](https://avatars.discourse-cdn.com/v4/letter/y/eb8c5e/32.png) [@Yunbit](https://forum.mautic.org/u/Yunbit)\
**Post date:** [August 21, 2017, 6:13am UTC](https://forum.mautic.org/t/custom-headers-in-e-mail/9270/1 "2017-08-21T06:13:34Z")

</div>

Hello. We want to send Mautic e-mails through a SMTP relay service that requires messages to have the custom SMTP header X-Strrelay with a certain value. We haven’t found this in the e-mail settings. Are we missing something, or this cannot be done without creating a plugin?  
  
  
  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Yunbit](https://avatars.discourse-cdn.com/v4/letter/y/eb8c5e/32.png) [@Yunbit](https://forum.mautic.org/u/Yunbit)\
**Post date:** [August 21, 2017, 6:13am UTC](https://forum.mautic.org/t/custom-headers-in-e-mail/9270/2 "2017-08-21T06:13:34Z")

</div>

Hello. We want to send Mautic e-mails through a SMTP relay service that requires messages to have the custom SMTP header X-Strrelay with a certain value. We haven’t found this in the e-mail settings. Are we missing something, or this cannot be done without creating a plugin?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![tej](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tej/32/658_2.png) [@tej](https://forum.mautic.org/u/tej)\
**Post date:** [December 16, 2020, 3:10am UTC](https://forum.mautic.org/t/custom-headers-in-e-mail/9270/3 "2020-12-16T03:10:19Z")

</div>

after 3 years im reading this thread , im looking for same solution any idea  
much appreciated

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 16, 2020, 2:46pm UTC](https://forum.mautic.org/t/custom-headers-in-e-mail/9270/4 "2020-12-16T14:46:57Z")

</div>

_ **Mautic can do anything.** _

You’ll find this here:

Channel -\> Email -\> Advanced tab -\> Click on the orange **Add value** button

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a97aee6d3e1722352daa93cb2cdcf2b2fc1055bf.png)

Good luck  
Joey

---

<div class="post-metadata">

**Author:** ![jf5](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jf5/32/5339_2.png) [@jf5](https://forum.mautic.org/u/jf5)\
**Post date:** [June 17, 2021, 6:44pm UTC](https://forum.mautic.org/t/custom-headers-in-e-mail/9270/5 "2021-06-17T18:44:12Z")

</div>

Hello,

how can we do to set customs header programmatically from code in mautic 3.3.3 ?  
I want to automatically define headers when creating a new email to a segment.

Thanks,
