Merge remote-tracking branch 'origin/development' into development-tb

# Conflicts:
#	server/lib/template-sender.js
#	server/routes/api.js
This commit is contained in:
Tomas Bures 2019-07-10 02:13:19 +04:00
commit a22187ef12
2 changed files with 6 additions and 1 deletions

View file

@ -170,7 +170,11 @@ This setup starts a stack composed of Mailtrain, MongoDB, Redis, and MariaDB. It
- http://localhost:3003 - sandbox endpoint
- http://localhost:3004 - public endpoint
To make this publicly accessible, you should add reverse proxy that makes these endpoints publicly available over HTTPS.
To make this publicly accessible, you should add reverse proxy that makes these endpoints publicly available over HTTPS. If using the proxy, you also need to set the URL bases and `--withProxy` parameter via `MAILTRAIN_SETTING` as shown below.
An example of such proxy would be:
- http://localhost:3000 -> https://mailtrain.example.com
- http://localhost:3003 -> https://sbox.mailtrain.example.com
- http://localhsot:3004 -> https://lists.example.com
To deploy Mailtrain with Docker, you need the following three dependencies installed:

View file

@ -311,6 +311,7 @@ router.postAsync('/templates/:templateId/send', async (req, res) => {
const emails = input.EMAIL.split(',');
// TODO: attachments: input.ATTACHMENTS || []
const info = await templates.sendAsTransactionalEmail(req.context, templateId, sendConfigurationId, emails, input.SUBJECT, input.VARIABLES);
res.json({ data: info });