Skip to content

Commit

Permalink
feat(sendmail): allow for sending emails using sendmail
Browse files Browse the repository at this point in the history
re #5
  • Loading branch information
ndvo committed Apr 9, 2021
1 parent fcab579 commit 76b2adf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ It also offers an [online editor](https://mjml.io/try-it-live) and a [desktop cl

- You can use Twig to achieve some advanced features. Twig offers functions such as `date`, `max` and `min` and also offers filters you can take advantage of.
- You can use Twig control flow to avoid sending emails under custom circumstances. Use `{% if variable %}...{% endif %}` so that the body (both txt and html) or the subject is empty. The application will not send emails with empty body or subject.
- If your server is configured to use sendmail, you can set the `sendmail` configuration in `config.js` file to `true` for it to send emails using sendmail.


# Development

Expand Down
4 changes: 4 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export const config = {
pass: "",
},
security: "STARTTLS",
sendmail: false, // Set this to true if you wish to use the installed sendmail. Leave as false if you are unsure
// Uncomment the lines bellow to configure your sendmail, if you set the above to true.
//newline: "unix", // You may set the newline style if you are using sendmail.
//path: "/usr/bin/sendmail" // You may set a custom sendamil path if you are using sendmail.
},
// Configure your Foxy store details
store: {
Expand Down

0 comments on commit 76b2adf

Please sign in to comment.