Skip to content
Snippets Groups Projects
Commit 63b01992 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Change mail options

parent 4306a34f
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -22,13 +22,13 @@ transporter.verify(function(error, success) {
}
});
let mailOptions = {
const mailOptions = {
from: config.email.from
};
module.exports = function send(options, cb) {
Object.assign(options, mailOptions);
transporter.sendMail(options, (err, info) => {
let opt = Object.assign({}, mailOptions, options);
transporter.sendMail(opt, (err, info) => {
if(err) {
return cb(err);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment