From 76b2adf0905923b7ce6c5c90b79173184b1aed1b Mon Sep 17 00:00:00 2001 From: ndvo Date: Fri, 9 Apr 2021 09:18:02 -0300 Subject: [PATCH] feat(sendmail): allow for sending emails using sendmail re #5 --- README.md | 2 ++ config.js | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 4c8adf3..0fdb281 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/config.js b/config.js index 7059890..36d8328 100644 --- a/config.js +++ b/config.js @@ -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: {