Email notification setup workaround for Gmail
-
I could not manage to configure Mycontroller V.1 Email notification settings and make it working with the stringent requirements of Gmail. And since its development is frozen, but it is still my beloved solution, I worked on a solution with the help of node-red.
I am on:
running on a Windows 10 mini pc.In node-red, using https://flows.nodered.org/node/node-red-node-email I have first created a local SMTP server:
followed by a change node in order to extract the html portion of the message from the message object:
In order to avoid email clogging I inserted a
to limit the email send rate to 1 email per second.Finally, the message containing the html payload is sent to
which connects nicely to t the Gmail SMTP server, using my camper email account.Gmail SMTP requires an App Password, which can be obtained following these instructions
https://support.google.com/mail/answer/185833?hl=enThis is how the flow looks like in node-red
This is how I set up the email notification in MyController
As you can see the email and domain are fake, since this SMTP server is local. I just needed to define an SMTP user. The same user is added to the list of the allowed users in the Email MTA node.
Hope it helps anyone who, like me, struggled with Gmail SMTP restrictions.