Skip to content

Commit d5a6720

Browse files
committed
feat: updated preview screenshots
1 parent c3f75db commit d5a6720

File tree

4 files changed

+16
-24
lines changed

4 files changed

+16
-24
lines changed

README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
55
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
66
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
7-
[![license](https://img.shields.io/github/license/niftylettuce/preview-email.svg)]()
7+
[![license](https://img.shields.io/github/license/forward-email/preview-email.svg)]()
88

9-
> Automatically opens your browser and iOS Simulator to preview [Node.js][node] email messages sent with [Nodemailer][]. Made for [Forward Email][forward-email] [Lad][]!
9+
> Automatically opens your browser and iOS Simulator to preview [Node.js][node] email messages sent with [Nodemailer][]. Made for [Forward Email][forward-email] and [Lad][]!
1010
1111

1212
## Table of Contents
@@ -20,7 +20,6 @@
2020
* [Custom Preview Template and Stylesheets](#custom-preview-template-and-stylesheets)
2121
* [Debugging](#debugging)
2222
* [Options](#options)
23-
* [Contributors](#contributors)
2423
* [License](#license)
2524

2625

@@ -32,7 +31,7 @@
3231

3332
### Browser
3433

35-
<a href="media/browser.png" target="_blank"><img src="media/browser.png" width="799" height="2036" alt="Browser Screenshot" /></a>
34+
<a href="media/browser.png" target="_blank"><img src="media/browser.png" width="617" height="939" alt="Browser Screenshot" /></a>
3635

3736

3837
## Install
@@ -78,8 +77,8 @@ const transport = nodemailer.createTransport({
7877

7978
// <https://nodemailer.com/message/>
8079
const message = {
81-
from: 'niftylettuce+from@gmail.com',
82-
to: 'niftylettuce+to@gmail.com',
80+
from: 'linus+from@gmail.com',
81+
to: 'linus+to@gmail.com',
8382
subject: 'Hello world',
8483
html: '<p>Hello world</p>',
8584
text: 'Hello world',
@@ -136,23 +135,16 @@ NODE_DEBUG=preview-email node app.js
136135
* `returnHTML` (Boolean) - whether or not to return HTML only – and subsequently not write nor open the file preview file (defaults to `false`)
137136

138137

139-
## Contributors
140-
141-
| Name | Website |
142-
| -------------- | -------------------------- |
143-
| **Nick Baugh** | <http://niftylettuce.com/> |
144-
145-
146138
## License
147139

148-
[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)
140+
[MIT](LICENSE) © [Forward Email](https://forwardemail.net)
149141

150142

151143
##
152144

153145
[npm]: https://www.npmjs.com/
154146

155-
[email-templates]: https://github.com/niftylettuce/email-templates
147+
[email-templates]: https://github.com/forwardemail/email-templates
156148

157149
[node]: https://nodejs.org/
158150

media/browser.png

-73.3 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "preview-email",
33
"description": "Automatically opens your browser and iOS Simulator to preview Node.js email messages sent with Nodemailer. Made for Forward Email and Lad!",
44
"version": "3.0.13",
5-
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
5+
"author": "Forward Email (https://forwardemail.net)",
66
"bugs": {
77
"url": "https://github.com/forwardemail/preview-email/issues",
88
"email": "niftylettuce@gmail.com"

test/test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ test('returns function', (t) => {
1212

1313
test('opens a preview email', async (t) => {
1414
const message = {
15-
from: 'niftylettuce <niftylettuce+from@gmail.com>',
16-
to: 'niftylettuce+to@gmail.com, niftylettuce <niftylettuce+test@gmail.com>',
15+
from: 'linus <linus+from@gmail.com>',
16+
to: 'linus+to@gmail.com, linus <linus+test@gmail.com>',
1717
subject: 'Hello world',
1818
html: `<p>Hello world</p>`,
1919
text: 'Hello world',
20-
replyTo: 'niftylettuce <niftylettuce+replyto@gmail.com>',
20+
replyTo: 'linus <linus+replyto@gmail.com>',
2121
inReplyTo: 'in reply to',
2222
attachments: [
2323
{ filename: 'hello-world.txt', content: 'Hello world' },
@@ -32,7 +32,7 @@ test('opens a preview email', async (t) => {
3232
'X-Some-Custom-Header': 'Some Custom Value'
3333
},
3434
list: {
35-
unsubscribe: 'https://niftylettuce.com/unsubscribe'
35+
unsubscribe: 'https://linus.com/unsubscribe'
3636
}
3737
};
3838
const response = await transport.sendMail(message);
@@ -42,12 +42,12 @@ test('opens a preview email', async (t) => {
4242

4343
test('returns HTML only', async (t) => {
4444
const message = {
45-
from: 'niftylettuce <niftylettuce+from@gmail.com>',
46-
to: 'niftylettuce+to@gmail.com, niftylettuce <niftylettuce+test@gmail.com>',
45+
from: 'linus <linus+from@gmail.com>',
46+
to: 'linus+to@gmail.com, linus <linus+test@gmail.com>',
4747
subject: 'Hello world',
4848
html: `<p>Hello world</p>`,
4949
text: 'Hello world',
50-
replyTo: 'niftylettuce <niftylettuce+replyto@gmail.com>',
50+
replyTo: 'linus <linus+replyto@gmail.com>',
5151
inReplyTo: 'in reply to',
5252
attachments: [
5353
{ filename: 'hello-world.txt', content: 'Hello world' },
@@ -62,7 +62,7 @@ test('returns HTML only', async (t) => {
6262
'X-Some-Custom-Header': 'Some Custom Value'
6363
},
6464
list: {
65-
unsubscribe: 'https://niftylettuce.com/unsubscribe'
65+
unsubscribe: 'https://linus.com/unsubscribe'
6666
}
6767
};
6868
const response = await transport.sendMail(message);

0 commit comments

Comments
 (0)