diff --git a/config.env b/config.env index 1b7fa040a..dbfb64d61 100644 --- a/config.env +++ b/config.env @@ -8,7 +8,3 @@ JWT_SECRET=my-ultra-secure-and-ultra-long-secret JWT_EXPIRES_IN=90d JWT_COOKIE_EXPIRES_IN=90 -EMAIL_USERNAME=a124458539192a -EMAIL_PASSWORD=1e3caf48074eba -EMAIL_HOST=smtp.mailtrap.io -EMAIL_PORT=25 \ No newline at end of file diff --git a/utils/email.js b/utils/email.js index 4e2aadb3d..edf41e955 100644 --- a/utils/email.js +++ b/utils/email.js @@ -1,27 +1,27 @@ -const nodemailer = require('nodemailer'); +// const nodemailer = require('nodemailer'); -const sendEmail = async options => { - // 1) Create a transporter - const transporter = nodemailer.createTransport({ - host: process.env.EMAIL_HOST, - port: process.env.EMAIL_PORT, - auth: { - user: process.env.EMAIL_USERNAME, - pass: process.env.EMAIL_PASSWORD - } - }); +// const sendEmail = async options => { +// // 1) Create a transporter +// const transporter = nodemailer.createTransport({ +// host: process.env.EMAIL_HOST, +// port: process.env.EMAIL_PORT, +// auth: { +// user: process.env.EMAIL_USERNAME, +// pass: process.env.EMAIL_PASSWORD +// } +// }); - // 2) Define the email options - const mailOptions = { - from: 'Jonas Schmedtmann ', - to: options.email, - subject: options.subject, - text: options.message - // html: - }; +// // 2) Define the email options +// const mailOptions = { +// from: 'Jonas Schmedtmann ', +// to: options.email, +// subject: options.subject, +// text: options.message +// // html: +// }; - // 3) Actually send the email - await transporter.sendMail(mailOptions); -}; +// // 3) Actually send the email +// await transporter.sendMail(mailOptions); +// }; -module.exports = sendEmail; +// module.exports = sendEmail;