Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-email

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-email - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "node-red-contrib-email",
"version": "0.1.0",
"version": "0.1.1",
"description": "SMTP email node for Node-RED",

@@ -5,0 +5,0 @@ "keywords": [

@@ -11,3 +11,3 @@ # node-red-contrib-email

cd ~/.node-red
npm install --save node-red-node-email
npm install --save node-red-contrib-email
```

@@ -20,3 +20,3 @@

## SMTP Config Node
## SMTP (Transport) Config Node

@@ -143,1 +143,26 @@ - **host** - is the hostname or ip address to connect to

response is a string returned by SMTP transports and includes the last SMTP response from the server
## Connection Test
SMTP connection is verified at node startup and displayed as node status.
Be aware though that this call only tests connection and authentication but it does not check if the service allows you to use a specific envelope From address or not.
## More Information
This node is based on *nodemailer*. Read their documentation for a deeper understanding:
- [smtp configuration](https://nodemailer.com/smtp/)
- [message configuration](https://nodemailer.com/message/)
## Feature Requests
Feel free to contact me for any feature request.
Features not implemented yet:
- Proxy Support
- OAuth2 authentication
- Pooled SMTP
- Delivery status notification
- Calendar events

@@ -13,2 +13,8 @@ module.exports = function (RED) {

});
node.on("close", function (removed, done) {
done = done || function () {};
node.transporter.close();
done();
});
}

@@ -31,2 +37,8 @@ RED.nodes.registerType("email-transport", EmailTransport, {

// request counter
const counter = {
success: 0,
error: 0,
};
// smtp transporter

@@ -42,3 +54,3 @@ const transporter = transport.transporter;

shape: "dot",
text: "connection test failed",
text: "connection failed",
});

@@ -49,3 +61,3 @@ } else {

shape: "dot",
text: "connection test success",
text: "connected",
});

@@ -56,2 +68,10 @@ }

node.on("input", function (msg, send, done) {
// set node status
node.status({
fill: "blue",
shape: "dot",
text: `success ${counter.success}, error ${counter.error}`,
});
const m = msg.email || {};

@@ -78,7 +98,2 @@ const mail = {

const counter = {
success: 0,
error: 0,
};
transporter.sendMail(mail, function (err, info) {

@@ -90,3 +105,3 @@ if (err) {

shape: "dot",
text: `success ${counter.success} | error ${counter.error}`,
text: `success ${counter.success}, error ${counter.error}`,
});

@@ -105,3 +120,3 @@ done(err);

shape: "dot",
text: `success ${counter.success} | error ${counter.error}`,
text: `success ${counter.success}, error ${counter.error}`,
});

@@ -108,0 +123,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc