Im trying to get the node-red email function to work and am having no luck with it. The email sends as expected but the body of the email just contains “undefined”
At the moment I am testing with a temperature monitor. I run the output to a function that contains
msg = {
payload: "The Temperature is "+msg.payload+"C",
topic: "Temperature email",
to: "MY.EMAIL.HERE",
from: "The Computer room<MY.EMAIL.HERE>",
qos: msg.qos,
retain: msg.retain,
_msgid: msg._msgid,
};
return msg;
Then out of that function into the node-red email (and a debug node)
The debug shows the correct msg settings and says it is sending the message.
I did several searches but did not find a solution, has anyone run into this before?
I should note that I have tried it with my primary email server which has spam and virus scanning then to make sure it was not on my server I changed it to a test email server which is just a stock sendmail config with no spam/virus detection and get the same message. The email server is not encrypted so plain port 25 email.