change email service
This commit is contained in:
@@ -29,12 +29,12 @@ module.exports = {
|
|||||||
message;
|
message;
|
||||||
|
|
||||||
let transporter = nodemailer.createTransport ({
|
let transporter = nodemailer.createTransport ({
|
||||||
host: 'smtp.yandex.com',
|
host: 'smtp.mail.com',
|
||||||
port: 465,
|
port: 587,
|
||||||
secure: true,
|
secure: false,
|
||||||
auth: {
|
auth: {
|
||||||
user: 'saburly@yandex.com',
|
user: 'saburly@mail.com',
|
||||||
pass: 'WeAreSaburlyTeam',
|
pass: 'KeepSaburly',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -127,15 +127,18 @@ module.exports = {
|
|||||||
intent.slots.Message.value,
|
intent.slots.Message.value,
|
||||||
destinationEmail
|
destinationEmail
|
||||||
).then(info=>{
|
).then(info=>{
|
||||||
|
console.log(info);
|
||||||
this.response.speak (
|
this.response.speak (
|
||||||
'Ok. Message sent. Someone will contact you ASAP'
|
'Ok. Message sent. Someone will contact you ASAP'
|
||||||
);
|
);
|
||||||
|
this.emit (':responseReady');
|
||||||
}).catch(error=>{
|
}).catch(error=>{
|
||||||
|
console.log(error);
|
||||||
this.response.speak (
|
this.response.speak (
|
||||||
'Sorry, there was a problem with sending message.'
|
'Sorry, there was a problem with sending message.'
|
||||||
);
|
);
|
||||||
|
this.emit (':responseReady');
|
||||||
});
|
});
|
||||||
this.emit (':responseReady');
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user