# Email subject not populating

**URL:** https://discourse.nodered.org/t/email-subject-not-populating/27772
**Category:** General
**Created:** [4 June 2020 14:04 UTC](https://discourse.nodered.org/t/email-subject-not-populating/27772 "2020-06-04T14:04:24Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![whitecider](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@whitecider](https://discourse.nodered.org/u/whitecider)
#### Post date: [4 June 2020 14:04 UTC](https://discourse.nodered.org/t/email-subject-not-populating/27772/1 "2020-06-04T14:04:24Z")

</div>

i am using the email node but for some reason the msg.topic value is not showing up in the subject line of the emails. does anyone know how to make it work?

```auto
[{"id":"f01171f6.f07ad","type":"status","z":"8dc4cb03.fcb688","name":"","scope":["f314ef06.b4e4e"],"x":90,"y":916,"wires":[["3d23c86.e110438"]]},{"id":"a9eee60d.ac5368","type":"e-mail","z":"8dc4cb03.fcb688","server":"0.0.0.0","port":"25","secure":false,"tls":false,"name":"cherio@yahoo.com","dname":"PowerMeter","x":881,"y":918,"wires":[]},{"id":"e8ce8b62.799208","type":"function","z":"8dc4cb03.fcb688","name":"","func":"if (msg.payload != \"active\"){\n msg.payload = \n '<a href=\"http://np100:1880\"> Datalogger Communication Error</a>'\n msg.topic = 'Datalogger Communication error';\n}\nelse {\n return;\n}\nreturn msg;","outputs":1,"noerr":0,"x":445,"y":916,"wires":[["d476e6c8.d1c298"]]},{"id":"3d23c86.e110438","type":"change","z":"8dc4cb03.fcb688","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"status.text","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":269,"y":916,"wires":[["e8ce8b62.799208"]]},{"id":"b3f79eb2.22c21","type":"debug","z":"8dc4cb03.fcb688","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":822.5,"y":984,"wires":[]},{"id":"d476e6c8.d1c298","type":"delay","z":"8dc4cb03.fcb688","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"hour","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":615,"y":914,"wires":[["b3f79eb2.22c21","a9eee60d.ac5368"]]},{"id":"5958347e.59a7ac","type":"inject","z":"8dc4cb03.fcb688","name":"","topic":"","payload":"failed","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":266.5,"y":971,"wires":[["e8ce8b62.799208"]]}]

```

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [4 June 2020 14:30 UTC](https://discourse.nodered.org/t/email-subject-not-populating/27772/2 "2020-06-04T14:30:45Z")

</div>

Show us what the debug node shows.

What version of the email node are you using? Check in the hamburger menu \> Manage pallete. In fact if you are not using the latest then try upgrading that first.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [4 June 2020 14:34 UTC](https://discourse.nodered.org/t/email-subject-not-populating/27772/3 "2020-06-04T14:34:51Z")

</div>

Hilight the email note, then click the info tab and read the first sentence.

What does it say?

---

<div class="post-metadata">

### Author: ![whitecider](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@whitecider](https://discourse.nodered.org/u/whitecider)
#### Post date: [4 June 2020 14:35 UTC](https://discourse.nodered.org/t/email-subject-not-populating/27772/4 "2020-06-04T14:35:49Z")

</div>

this is what the debug shows..  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/68434f22777ed118c1dea35a3c91e56a909ca006.png)  
this is what i get in outlook  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/a/0a5271909b4e8d9cc429baf09eb58b00dc9f8ffc.png)

---

<div class="post-metadata">

### Author: ![whitecider](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@whitecider](https://discourse.nodered.org/u/whitecider)
#### Post date: [4 June 2020 14:36 UTC](https://discourse.nodered.org/t/email-subject-not-populating/27772/5 "2020-06-04T14:36:41Z")

</div>

this may be the problem will try an update  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d73a0bb3945afc0ff453b61129c5a3ad75a2b99c.png)

---

<div class="post-metadata">

### Author: ![whitecider](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@whitecider](https://discourse.nodered.org/u/whitecider)
#### Post date: [4 June 2020 14:39 UTC](https://discourse.nodered.org/t/email-subject-not-populating/27772/6 "2020-06-04T14:39:53Z")

</div>

if you look in the flow i posted you will see that i have given a value to msg.topic and fed it into the email node...

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [4 June 2020 14:41 UTC](https://discourse.nodered.org/t/email-subject-not-populating/27772/7 "2020-06-04T14:41:16Z")

</div>

Sorry, I missed that - I'm running the 1.7.8 version and it works fine

---

<div class="post-metadata">

### Author: ![whitecider](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@whitecider](https://discourse.nodered.org/u/whitecider)
#### Post date: [4 June 2020 14:42 UTC](https://discourse.nodered.org/t/email-subject-not-populating/27772/8 "2020-06-04T14:42:39Z")

</div>

I updated the email node and it works  
thanks

---

<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: [18 June 2020 14:42 UTC](https://discourse.nodered.org/t/email-subject-not-populating/27772/9 "2020-06-18T14:42:45Z")

</div>

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