• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login

Email notification setup workaround for Gmail

Scheduled Pinned Locked Moved Getting Started
1 Posts 1 Posters 19 Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    fsgrazzutti
    last edited by fsgrazzutti 17 days ago

    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:
    f435ccce-ee27-4aad-a160-65dd6ee87565-image.png
    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:

    76588854-7010-4a93-aba6-6e1ca17809a3-image.png

    followed by a change node in order to extract the html portion of the message from the message object:
    3ffbfaac-e7d5-4ae1-8963-d2aeb16591f6-image.png

    In order to avoid email clogging I inserted a
    84b68489-e44a-45da-9196-82908ee869e8-image.png
    to limit the email send rate to 1 email per second.

    Finally, the message containing the html payload is sent to
    a0b8225c-b458-40d7-b044-102006cc4bbf-image.png
    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=en

    This is how the flow looks like in node-red
    990f9c3e-f297-47ae-878f-5f5c3836b08a-image.png

    This is how I set up the email notification in MyController
    56ccb619-c47a-4975-a7a0-89e5be4d26e3-image.png

    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.

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post

    0

    Online

    587

    Users

    529

    Topics

    3.4k

    Posts
    Copyright © 2015-2025 MyController.org | Contributors | Localization