Skip to content

Commit

Permalink
Merge pull request #2279 from justinr1234/patch-2
Browse files Browse the repository at this point in the history
Fix IFTTT email sending
  • Loading branch information
xet7 committed Mar 21, 2019
2 parents 0310560 + 12268bd commit 30bf8a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/rulesHelper.js
Expand Up @@ -67,15 +67,15 @@ RulesHelper = {
card.move(card.swimlaneId, listId, maxOrder + 1);
}
if(action.actionType === 'sendEmail'){
const emailTo = action.emailTo;
const emailMsg = action.emailMsg;
const emailSubject = action.emailSubject;
const to = action.emailTo;
const text = action.emailMsg || '';
const subject = action.emailSubject || '';
try {
Email.send({
emailTo,
to,
from: Accounts.emailTemplates.from,
emailSubject,
emailMsg,
subject,
text,
});
} catch (e) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 30bf8a1

Please sign in to comment.