diff --git a/src/helpers/email.js b/src/helpers/email.js index 1d99093..dbac631 100644 --- a/src/helpers/email.js +++ b/src/helpers/email.js @@ -198,7 +198,7 @@ exports.SendEmail_NewShifts = async function (publisher, shifts) { -//----------------------- OLD ----------------------------- +//----------------------- OLD ----------------------------- // exports.SendEmail_NewShifts = async function (publisher, shifts) { // if (shifts.length == 0) return; @@ -247,51 +247,51 @@ exports.SendEmail_NewShifts = async function (publisher, shifts) { // }; -// https://mailtrap.io/blog/sending-emails-with-nodemailer/ -exports.SendEmail_Example = async function (to) { - const welcomeImage = fs.readFileSync( - path.join(CON.contentPath, "welcome.png") - ); +// // https://mailtrap.io/blog/sending-emails-with-nodemailer/ +// exports.SendEmail_Example = async function (to) { +// const welcomeImage = fs.readFileSync( +// path.join(CON.contentPath, "welcome.png") +// ); - await client - .send({ - category: "test", - custom_variables: { - hello: "world", - year: 2022, - anticipated: true, - }, - from: sender, - to: [{ email: to }], - subject: "Hello from Mailtrap!", - html: ` - - - - - -
-

Congrats for sending test email with Mailtrap!

-

Inspect it using the tabs you see above and learn how this email can be improved.

- Inspect with Tabs -

Now send your email using our fake SMTP server and integration of your choice!

-

Good luck! Hope it works.

-
- - - - `, - attachments: [ - { - filename: "welcome.png", - content_id: "welcome.png", - disposition: "inline", - content: welcomeImage, - }, - ], - }) - .then(console.log, console.error, setResult); -}; +// await client +// .send({ +// category: "test", +// custom_variables: { +// hello: "world", +// year: 2022, +// anticipated: true, +// }, +// from: sender, +// to: [{ email: to }], +// subject: "Hello from Mailtrap!", +// html: ` +// +// +// +// +// +//
+//

Congrats for sending test email with Mailtrap!

+//

Inspect it using the tabs you see above and learn how this email can be improved.

+// Inspect with Tabs +//

Now send your email using our fake SMTP server and integration of your choice!

+//

Good luck! Hope it works.

+//
+// +// +// +// `, +// attachments: [ +// { +// filename: "welcome.png", +// content_id: "welcome.png", +// disposition: "inline", +// content: welcomeImage, +// }, +// ], +// }) +// .then(console.log, console.error, setResult); +// };