mirror of
https://github.com/PretendoNetwork/account.git
synced 2024-06-01 03:28:07 -04:00
Updated mailer to have proper from address
This commit is contained in:
parent
883417c05f
commit
540c11f4aa
|
@ -3,4 +3,12 @@ const config = require('../config.json');
|
|||
|
||||
const transporter = nodemailer.createTransport(config.email);
|
||||
|
||||
module.exports = transporter;
|
||||
async function sendMail(options) {
|
||||
options.from = config.email.from;
|
||||
|
||||
await transporter.sendMail(options);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sendMail
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue