node-red / node-red-nodes

Extra nodes for Node-RED
Other
988 stars 593 forks source link

From field is empty #632

Open DarKOrange75 opened 4 years ago

DarKOrange75 commented 4 years ago

Which node are you reporting an issue on?

node-red-email

What are the steps to reproduce?

set msg.from either from javascript function or a change node

What happens?

The email sent has an empty "from" field

What do you expect to happen?

The email sent has a "from" field with the value set in the change node or the javascript function

Please tell us about your environment:

dceejay commented 4 years ago

We don't have a version 0.106.0 which version of node.js, Node-RED are you using and which version of the email node ? What mail server are you using ? Quite a few of the public ones now refuse to let you set the from to anything that does not match the login domain in order to help cut down spoofing. For example in gmail - it must come from one of the accounts set up under your email settings (you can have several - but they must all be owned by you). You can set msg.replyTo that may be a way for people to reply to another address.

DarKOrange75 commented 4 years ago

Hi, thank you for your answer. Sorry I was mistaken and gave the Home Assistant version number instead of the node-red one. I am using node-red addon for Home Assistant and version is 1.04 I am using the mail service of my domain name registrar (Gandi.net) and I am not aware of any restriction but I will investigate. I am new to Home Assistant an I don't know how to check the node.js version, the command line returns "node: command not found"

dceejay commented 4 years ago

Gandi.net has had a lot of spoofing attacks recently so they may well have started taking action to limit or block this. You could also try msg.sender but most treat that the same if at all.

DarKOrange75 commented 4 years ago

OK I'll give a try, thank you!