Socket
Socket
Sign inDemoInstall

smtp-connection

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smtp-connection - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

4

CHANGELOG.md
# Changelog
## v1.3.6 2015-12-19
* Updated isemail configuration to only allow SMTP compatible e-mail addresses for the envelope (otherwise valid addresses might include symbols that don't play well with SMTP, eg. line folding inside quoted strings)
## v1.3.5 2015-12-19

@@ -4,0 +8,0 @@

2

package.json
{
"name": "smtp-connection",
"version": "1.3.5",
"version": "1.3.6",
"description": "Connect to SMTP servers",

@@ -5,0 +5,0 @@ "main": "src/smtp-connection.js",

@@ -565,3 +565,8 @@ 'use strict';

if (this._envelope.from && !isemail(this._envelope.from)) {
if (this._envelope.from &&
isemail(this._envelope.from,
// isemail non smtp compatible error codes start from 17
{
errorLevel: 16
}) !== 0) {
return callback(this._formatError('Invalid sender ' + JSON.stringify(this._envelope.from), 'EENVELOPE'));

@@ -571,3 +576,8 @@ }

for (var i = 0, len = this._envelope.to.length; i < len; i++) {
if (!this._envelope.to[i] || !isemail(this._envelope.to[i])) {
if (!this._envelope.to[i] ||
isemail(this._envelope.to[i],
// isemail non smtp compatible error codes start from 17
{
errorLevel: 16
}) !== 0) {
return callback(this._formatError('Invalid recipient ' + JSON.stringify(this._envelope.to[i]), 'EENVELOPE'));

@@ -574,0 +584,0 @@ }

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