node-red-nodes icon indicating copy to clipboard operation
node-red-nodes copied to clipboard

From field is empty

Open DarKOrange75 opened this issue 4 years ago • 4 comments

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:

  • [x] Node-RED version: 0.106.0
  • [ ] node.js version:
  • [ ] npm version:
  • [ ] Platform/OS: Raspi / Stretch
  • [ ] Browser: Safari/Chrome

DarKOrange75 avatar Feb 29 '20 13:02 DarKOrange75

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.

dceejay avatar Feb 29 '20 18:02 dceejay

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"

DarKOrange75 avatar Feb 29 '20 22:02 DarKOrange75

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.

dceejay avatar Feb 29 '20 22:02 dceejay

OK I'll give a try, thank you!

DarKOrange75 avatar Mar 03 '20 09:03 DarKOrange75