You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 22, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+15
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ Usually, building HTML emails yourself is tedious. On top of that, add the need
17
17
6.[Paths](#paths)
18
18
7.[Sample file structure](#sample-file-structure)
19
19
8.[Logging](#logging)
20
+
9.[Plain-text](#plain-text)
20
21
6.[Version history](#version-history)
21
22
7.[Contributing](#contributing)
22
23
@@ -27,6 +28,7 @@ Usually, building HTML emails yourself is tedious. On top of that, add the need
27
28
-**SCSS support** using `node-sass` (opt-in).
28
29
-**Preview and debug** emails in development mode in your browser when developing.
29
30
-**Layouts** for re-using markup.
31
+
-**Auto Plain-text** automatically creates a plain text version from your html template for lower Spam score.
30
32
31
33
Help is appreciated in order to hammer out potential issues and bugs.
32
34
@@ -91,6 +93,8 @@ Please inspect the provided sample code for details.
91
93
templates: {}, // Required. A key-value hash where the keys are the template names. See more below.
92
94
helpers: {}, // Global helpers available for all templates.
93
95
layout: false // Global layout template.
96
+
settings:
97
+
plainText: true // Optional, defaults to true
94
98
}
95
99
```
96
100
@@ -439,8 +443,19 @@ and that will be used. The logger **must** support these methods:
439
443
440
444
Why not try [`meteor-logger`](https://github.com/lookback/meteor-logger)? :)
441
445
446
+
### Plain-text
447
+
By default, plain-text versions are automatically created from your html template and included in the final email. It's strongly advises to leave this option on, as it greatly reduces your emails' Spam score and the chance that your emails will end up in Spam folder of users. However, if you want to override this behaviour simply at this to `Mailer.init()`:
448
+
449
+
```coffeescript
450
+
Mailer.init(
451
+
settings:
452
+
plainText:false
453
+
)
454
+
```
455
+
442
456
## Version history
443
457
458
+
-`0.6.0` - Automatically create and include plain-text email version from your HTML templates
444
459
-`0.5.1` - Remove need for setting the `BUNDLE_PATH` environment variable ([#39](https://github.com/lookback/meteor-emails/pull/39)).
445
460
-`0.5.0` - Remove `node-sass` as hard dependency. SCSS support is now opt-in, by adding `chrisbutler:node-sass` to your app ([#35](https://github.com/lookback/meteor-emails/pull/35)).
446
461
-`0.4.6` - Fix paths on Windows in development mode.
0 commit comments