Added registration mail sending method

This commit is contained in:
Alexis
2020-12-27 17:28:49 +01:00
parent bdfdb1d21e
commit 10fdbade66
2 changed files with 83 additions and 0 deletions

14
api/smtp/config.js Normal file
View File

@@ -0,0 +1,14 @@
const nodemailer = require('nodemailer');
const transport = nodemailer.createTransport({
host: "smtp.mailtrap.io",
port: 2525,
auth: {
user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS,
}
});
module.exports = {
transport,
};