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 + `, +};