Add invite email template
This commit is contained in:
parent
5413c7dddf
commit
6a378df5cf
11
services/email/emailConfigs.js
Normal file
11
services/email/emailConfigs.js
Normal file
@ -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',
|
||||
};
|
27
services/email/templates/meetingInvite.js
Normal file
27
services/email/templates/meetingInvite.js
Normal file
@ -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
|
||||
`,
|
||||
};
|
Loading…
Reference in New Issue
Block a user