node-red-node-email provides a set of nodes for the Node-RED visual programming environment, enabling users to easily send and receive emails within their flows. The current stable version is 5.2.3. The package offers an 'Email (input)' node to fetch messages from IMAP or POP3 servers, and an 'Email (output)' node to send emails via SMTP. It supports modern authentication methods such as OAuth2.0 for Exchange/Outlook 365 and application-specific passwords for Gmail, which are crucial for two-factor authentication setups. Releases are tied to Node.js version requirements, with recent versions requiring Node.js v20 or newer, and major updates often introducing breaking changes related to authentication mechanisms. Its primary differentiator is seamless integration into Node-RED, abstracting complex email protocols into configurable visual components, allowing for robust email automation directly within flows.
npm install node-red-node-emailVerified import paths — ran on the pinned version, not inferred.
This code prepares a message object (`msg`) within a Node-RED Function node, which the 'Email (output)' node then uses to send an email with a subject, body, sender, recipient, and optional attachments.
After upgrading to v4.x, reconfigure the user and password fields for `email-mta` nodes in your Node-RED flows.
Ensure your Node-RED environment is running on Node.js v20.0.0 or newer. Check Node-RED documentation for upgrading your Node.js version.
Visit your Google account settings to generate an application password or adjust 'less secure app access' settings as required for your GMail account.
Register an application through the Microsoft platform and configure your `Email` node to use OAuth2.0, providing the necessary access tokens.
Ensure the email address provided in `msg.from` is valid and authorized by your SMTP server for sending emails through the configured account.
If using self-signed certificates, consult your SMTP server documentation or Nodemailer settings (if exposed by the node configuration) to allow insecure TLS connections, or obtain valid certificates.
For Gmail, generate an App Password. For Outlook/Exchange, configure OAuth2.0. Double-check username and password entries in the node configuration.
If safe to do so in your environment, try to find an option within the Email node configuration to disable SSL/TLS certificate verification, or install the server's certificate into your system's trust store.
Verify the email server address and port in the node configuration. Ensure network connectivity from your Node-RED instance to the email server, and check firewall rules.
Set `msg.from` to an email address directly associated with the account used for authentication, or leave it blank to let the server use its default sender.
No dependency data recorded yet.