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
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 :
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.
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.
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
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
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?
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.
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.