Skip to content

Commit

Permalink
upgraded to version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenPioneer committed Aug 7, 2017
1 parent 944c487 commit e20fb07
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
13 changes: 12 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ Send mail without SMTP server

### Install

npm install sendmail --save
``` bash
npm install sendmail --save
# or
yarn add sendmail
```

### Options

Expand All @@ -35,6 +39,7 @@ const sendmail = require('sendmail')({
keySelector: 'mydomainkey'
},
devPort: 1025 // Default: False
devHost: 'localhost' // Default: localhost
})
```

Expand All @@ -61,6 +66,7 @@ Please checkout our great examples
- **[dkim.js](https://github.com/guileen/node-sendmail/blob/master/examples/dkim.js)**
- **[meetingRequest.js](https://github.com/guileen/node-sendmail/blob/master/examples/meetingRequest.js)**
- **[simple.js](https://github.com/guileen/node-sendmail/blob/master/examples/simple.js)**
- **[devHostPort.js](https://github.com/guileen/node-sendmail/blob/master/examples/devHostPort.js)**

### Upgrading

Expand Down Expand Up @@ -122,6 +128,11 @@ A property describing a port for a local SMTP server (see [MailHog](https://gith
##### 1.1.0 Add DKIM signing
Added a `dkim` object to options that can have two properties: `privateKey` and `keySelector`. These options correspond to the options for [`dkim-signer`](https://github.com/andris9/dkim-signer). Added an example for these options. Special thanks goes out to download13 for [PR 23](https://github.com/guileen/node-sendmail/pull/23)

##### 1.1.1 Readme fix
simple link and text updates

##### 1.2.0 Added Support for devHost & devPort
Add option to override "localhost" when sending all SMTP traffic to a dummy server.

### Roadmap

Expand Down
15 changes: 15 additions & 0 deletions examples/devHostPort.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var sendmail = require('../sendmail')({
devHost:'localhost',
devPort: 1025
})

sendmail({
from: 'test@yourdomain.com',
to: 'info@yourdomain.com',
replyTo: 'jason@yourdomain.com',
subject: 'MailComposer sendmail',
html: 'Mail of test sendmail '
}, function (err, reply) {
console.log(err && err.stack)
console.dir(reply)
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Gui Lin <guileen@gmail.com>",
"name": "sendmail",
"description": "Sendmail without setting up SMTP server",
"version": "1.1.1",
"version": "1.2.0",
"repository": {
"type": "git",
"url": "git://github.com/guileen/node-sendmail.git"
Expand Down

0 comments on commit e20fb07

Please sign in to comment.