sendmail
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -5,3 +5,3 @@ { | ||
"description": "Sendmail without setting up SMTP server", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -41,5 +41,6 @@ [![npm][npm-image]][npm-url] | ||
}, | ||
devPort: 1025 // Default: False | ||
devHost: 'localhost' // Default: localhost | ||
smtpPort: 2525 // Default: 25 | ||
devPort: 1025, // Default: False | ||
devHost: 'localhost', // Default: localhost | ||
smtpPort: 2525, // Default: 25 | ||
smtpHost: 'localhost' // Default: -1 - extra smtp host after resolveMX | ||
}) | ||
@@ -72,2 +73,3 @@ ``` | ||
- **[devHostPort.js](https://github.com/guileen/node-sendmail/blob/master/examples/devHostPort.js)** | ||
- **[smtpPort.js](https://github.com/guileen/node-sendmail/blob/master/examples/smtpPort.js)** | ||
@@ -145,2 +147,5 @@ ### Upgrading | ||
##### 1.4.0 | ||
Add option to add extra smtp host after resolveMX "smtpHost:-1" | ||
Added Yarn Lock | ||
@@ -150,2 +155,7 @@ ### Roadmap | ||
* Add Testing | ||
* Add Better Error Handling | ||
* Add A Retry feature | ||
* Update how we do options | ||
* Respond with documented status codes | ||
* CRLF | ||
* Please submit your ideas as PR's |
@@ -25,3 +25,3 @@ const {createConnection} = require('net'); | ||
const smtpPort = options.smtpPort || 25 | ||
const smtpHost = options.smtpHost || -1 | ||
/* | ||
@@ -87,3 +87,3 @@ * 邮件服务返回代码含义 Mail service return code Meaning | ||
} | ||
if(smtpHost !== -1)data.push({exchange:smtpHost}) | ||
function tryConnect (i) { | ||
@@ -90,0 +90,0 @@ if (i >= data.length) return callback(new Error('can not connect to any SMTP server')); |
77696
17
512
158