allow attachments from api
This commit is contained in:
parent
f8e9d67568
commit
20603f679c
2 changed files with 4 additions and 2 deletions
|
@ -48,7 +48,8 @@ class TemplateSender {
|
|||
return mailer.sendTransactionalMail(
|
||||
{
|
||||
to: options.email,
|
||||
subject
|
||||
subject,
|
||||
attachments: options.attachments || []
|
||||
},
|
||||
{
|
||||
html: { template: html },
|
||||
|
|
|
@ -308,7 +308,8 @@ router.postAsync('/templates/:templateId/send', async (req, res) => {
|
|||
email: input.EMAIL,
|
||||
sendConfigurationId: input.SEND_CONFIGURATION_ID,
|
||||
subject: input.SUBJECT,
|
||||
variables: input.VARIABLES
|
||||
variables: input.VARIABLES,
|
||||
attachments: input.ATTACHMENTS || []
|
||||
});
|
||||
res.status(200).json({ data: info });
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue