From 6a378df5cf69d32284418567cc20a48effcae021 Mon Sep 17 00:00:00 2001 From: rui hildt Date: Sat, 29 Aug 2020 15:15:55 +0200 Subject: [PATCH] Add invite email template --- services/email/emailConfigs.js | 11 +++++++++ services/email/templates/meetingInvite.js | 27 +++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 services/email/emailConfigs.js create mode 100644 services/email/templates/meetingInvite.js diff --git a/services/email/emailConfigs.js b/services/email/emailConfigs.js new file mode 100644 index 0000000..68a78fe --- /dev/null +++ b/services/email/emailConfigs.js @@ -0,0 +1,11 @@ +module.exports = { + appURL: 'https://meetingplanner.com', + + sender: 'no-reply@ruihildt.xyz', + receiver: 'ruihildt@armada.digital', + + senderUsername: 'Rui', + meetingTitle: 'Simple Title meeting', + meetingID: 'zef-zefzefzefzefze-zefzefzef', + signature: 'The Meeting Planner Team', +}; diff --git a/services/email/templates/meetingInvite.js b/services/email/templates/meetingInvite.js new file mode 100644 index 0000000..d0bbc22 --- /dev/null +++ b/services/email/templates/meetingInvite.js @@ -0,0 +1,27 @@ +const { + sender, + receiver, + senderUsername, + receiver, + meetingTitle, + meetingID, + signature, + appURL, +} = require('../emailConfigs'); + +let meetingInvite = { + from: sender, + to: receiver, + subject: `Invitation | ${meetingTitle}`, + text: `Hi, + \n + ${senderUsername} invites you to participate to the poll '${meetingTitle}'. + \n + To participate, please fill in you availability: ${meetingURL}/meetings/${meetingID} + \n + Have a beautiful day, + \n + ${signature} | ${appURL} + \n + `, +};