# Custom headers in email node

**URL:** <https://discourse.nodered.org/t/custom-headers-in-email-node/51410>\
**Category:** General\
**Created:** [22 September 2021 19:47 UTC](https://discourse.nodered.org/t/custom-headers-in-email-node/51410 "2021-09-22T19:47:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JDN](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@JDN](https://discourse.nodered.org/u/JDN)\
**Post date:** [22 September 2021 19:47 UTC](https://discourse.nodered.org/t/custom-headers-in-email-node/51410/1 "2021-09-22T19:47:23Z")

</div>

is there a way to add custom header entries to the email output?

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [22 September 2021 22:09 UTC](https://discourse.nodered.org/t/custom-headers-in-email-node/51410/2 "2021-09-22T22:09:33Z")

</div>

You should be able to set them by passing them in as `msg.headers`

Where `msg.headers` is an object like:

```auto
msg.headers = {
        'x-my-key': 'header value',
        'x-another-key': 'another value'
    }

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 November 2021 22:10 UTC](https://discourse.nodered.org/t/custom-headers-in-email-node/51410/3 "2021-11-21T22:10:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
