UweG
25 June 2021 08:33
1
I am trying to create a cc in NodeRed to send mail.
My attempt:
msg.to = msg.MailDaten.An;
msg.cc = "Test1Mail@gmx.net ,Test2Mail@gmx.net " ;
msg.topic = msg.MailDaten.Betreff;
msg.attachments = msg.payload;
msg.text = msg.MailDaten.InhaltText;
msg.html = msg.MailDaten.InhaltHTML;
return msg;
does not work.
I receive the mail but no cc is sent.
How must the msg.cc be defined so that the MailSend-Node accepts it?
Thanks in advance for your help.
that looks ok to me - it should be a comma separated string of valid email addresses.
(as usual works fine for me...)
UweG
25 June 2021 10:55
3
Hi dceejay
Thank's for your answer.
Can you show me how you define msg.cc with an example of 2 fiction eMail adresses.
The way i do does not work and i use valid email addresses.
Colin
25 June 2021 11:07
4
Feed the message you are sending to the email node into a debug node set to output Complete Message and see what it shows.
UweG
26 June 2021 00:57
5
Hi Colin.
I did this und the message shows:
But the sendmail-node did not use it and only takes the defined msg.to. No cc was sent.
UweG
26 June 2021 02:54
6
Thank's for your help.
I solved the problem.
I write the to: Mailadresse direct in the Send Email Node.
Then it does not accept cc and bcc.
If you use msg.to and leave the node empty it works fine.
1 Like
Ah right, yes that could be improved.
system
Closed
25 August 2021 06:32
8
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.