IO-1422 Resolve send email with attachments.

This commit is contained in:
Patrick Fic
2021-10-05 11:47:37 -07:00
parent 65550c7bf4
commit c423e61ce8

View File

@@ -90,10 +90,12 @@ exports.sendEmail = async (req, res) => {
to: req.body.to, to: req.body.to,
cc: req.body.cc, cc: req.body.cc,
subject: req.body.subject, subject: req.body.subject,
info, // info,
}); });
res.json({ success: true, response: info }); res.json({
success: true, //response: info
});
} else { } else {
logger.log("send-email-failure", "ERROR", req.user.email, null, { logger.log("send-email-failure", "ERROR", req.user.email, null, {
from: `${req.body.from.name} <${req.body.from.address}>`, from: `${req.body.from.name} <${req.body.from.address}>`,