# Email successfully sent : status report missing

**URL:** <https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565>\
**Category:** General\
**Created:** [29 March 2019 08:54 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565 "2019-03-29T08:54:31Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [29 March 2019 08:54 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/1 "2019-03-29T08:54:31Z")

</div>

Hello  
I was using NodeRed 0.19.  
When I sent an email, I could get some status information.  
The status data were like this while sending :

```auto
29/03/2019 à 09:47:31[node: f0727040.30f1e](http://192.168.10.19:1880/#)msg : Object
object
status: object
**text: "email.status.sending**"
source: object
id: "b03fc5ab.b67158"
type: "e-mail"
name: ""
_msgid: "461c327a.3cc38c"

```

and the status returned this whe the mail was correctly sent :

```auto
 29/03/2019 à 09:47:33[node: f0727040.30f1e](http://192.168.10.19:1880/#)msg : Object
object
status: object
**text: ""**
source: object
id: "b03fc5ab.b67158"
type: "e-mail"
name: ""
_msgid: "8b69cc9.78f773"

```

## The text:"""" told me that the mail had been sent.

Now, with the new NodeRed 0.20, with NodeJs updated and the nodes email also updated, I still receive the information 'sending', or 'failed', but when the mail is correctly send, the object doesn't include anymore the field "text". and so, I can not control anymore that the mail has been sent.  
Is this a bug in this new email node (NodeRed 0.20), or is there something else to control to be sure that the mail has been sent?  
Thanks

---

<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:** [29 March 2019 13:25 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/2 "2019-03-29T13:25:29Z")

</div>

Can you put a debug node on the status, showing complete message, and show us what it says?

---

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [8 April 2019 12:17 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/3 "2019-04-08T12:17:45Z")

</div>

Hello

Here are the results of the debug node  
:

```auto
08/04/2019 à 14:01:22node: 11b07995.537ed6msg
: Object
object

status: object

fill: "blue"

shape: "dot"

text: "email.status.sending"

source: object

id: "bed8653e.500358"

type: "e-mail"

name: ""

_msgid: "bed06f21.7c65e"

08/04/2019 à 14:01:35node: 11b07995.537ed6

msg : Object

object

status: object

source: object

id: "bed8653e.500358"

type: "e-mail"

name: ""

_msgid: "69c7b7ae.eb0328"

```

So here, you can see that there is no  
more information showing that the mail has been correctly sent.

Versions used :  
Node-RED version: v0.20.3  
Node.js version: v10.15.3

in the previous version of nodeRed (0.19), there was no problem, and the status node returned :

```auto
status: object
text: ""

```

when the mail was correctly sent. now, with version 0.20, this field doesn't exists anymore, and I have nothing to know that the mail has been correctly sent.

Cordialement, Best Regards.

---

<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:** [8 April 2019 20:17 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/4 "2019-04-08T20:17:55Z")

</div>

Does not the fact that you get a message saying `email.status.sending` followed by another message indicate that it has sent it ok? I can't test this myself at the moment though to see if I can replicate. It does look like a bug though.  
Probably worth testing with 0.20.5 before reporting it as an issue. I assume the email node should be the latest version so worth checking that too.

---

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [9 April 2019 19:12 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/5 "2019-04-09T19:12:57Z")

</div>

Hi.  
When I get a message when the mail has been correctly sent, the version of the email node is 1.2.9.  
The version on wich I get the problem is the 1.30.

and no, getting a message following the email.status.sending is not enough. In fact, if the previous version, it was very easy to test something like text="". No, I can not test anything, because this answer does not exist anymore. So, I have nothing to test. This is the problem

So, any idea?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [9 April 2019 20:18 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/6 "2019-04-09T20:18:28Z")

</div>

you could use `if (!msg.status.hasOwnProperty("text") {...`  
The odd thing is that the line that sets that status hasn't changed for many versions...  
(much to Colin's annoyance 🙂

---

<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:** [9 April 2019 20:23 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/7 "2019-04-09T20:23:06Z")

</div>

> [@mike67](#):
>
> I can not test anything, because this answer does not exist anymore.

I don't understand that, your debug screenshot shows two messages, one with ` email.status.sending` then another with no text. Why can't you use the fact that there is no text field to indicate ok?

---

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [10 April 2019 05:56 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/8 "2019-04-10T05:56:32Z")

</div>

Hi colin  
The problem is that I don't know how  
to test this.  
What would be the syntax to test that  
there is no text propery?  
And the problem is that the version  
1.2.9 has got a different behaviour of the version 1.3.0 (or Node-red 0.19  
and 0.20)  
In my domain, this is not acceptable.  
When an application runs, it must run on any version of runtime.  
There must not be a different behaviour  
beetween 2 version of the same item (email out, in my case).  
Cordialement, Best Regards.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 April 2019 06:41 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/9 "2019-04-10T06:41:11Z")

</div>

The syntax to test for presence is as I showed you above.  
I can also assure you that that line of code in the email node hasn't changed, so yes it must be something introduced by the updated version of Node-RED. That needs to be investigated.  
It can be fixed in the email node of course, but I need to check the core reason first.

---

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [10 April 2019 06:57 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/10 "2019-04-10T06:57:55Z")

</div>

thanks a lot.  
Let me know if you find the problem  
and the solution  
Cordialement, Best Regards.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 April 2019 08:02 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/11 "2019-04-10T08:02:07Z")

</div>

pushed version 1.4.0 for you  
(and some goodness for @Colin)

---

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [10 April 2019 08:55 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/12 "2019-04-10T08:55:09Z")

</div>

Thanks for your help  
Do you have an idea of the release date?  
Cordialement, Best Regards.

---

<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:** [10 April 2019 09:03 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/13 "2019-04-10T09:03:50Z")

</div>

> [@dceejay](#):
>
> and some goodness for @Colin

Thanks, sadly I am not in a position to experiment at the moment, but will add it to the list of goodies to try out. 🙂

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 April 2019 09:14 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/14 "2019-04-10T09:14:06Z")

</div>

I wouldn’t hold your breath 🙂

---

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [10 April 2019 13:35 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/15 "2019-04-10T13:35:26Z")

</div>

Thanks you colin and dceejay.  
Now i have re-installed node.js, node-red,  
etc on my PLC, and what i get is very nice :  
 ![]()  
I see that you have fixed the problem  
with the version 1.4.0 of the email nodes.  
GREAT!  
Cordialement, Best Regards.

---

<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:** [10 April 2019 14:43 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/16 "2019-04-10T14:43:15Z")

</div>

For future reference, probably all you needed to do was to upgrade the email node to the latest version.

---

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [10 April 2019 14:58 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/17 "2019-04-10T14:58:18Z")

</div>

Was the version 1.4.0 and the bugfix alreday  
planned before my post?  
Cordialement, Best Regards.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 April 2019 15:32 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/18 "2019-04-10T15:32:25Z")

</div>

It was planned when I replied about 9 h ago !

---

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [10 April 2019 19:49 UTC](https://discourse.nodered.org/t/email-successfully-sent-status-report-missing/9565/19 "2019-04-10T19:49:32Z")

</div>

Waoo!  
I am very surprised about the reaction time. That’s great!
