Send message feature #11

Merged
senaduka merged 32 commits from send-message-feature into master 2018-01-23 12:20:02 +01:00
2 changed files with 9 additions and 6 deletions
Showing only changes of commit 9cff3cd9ae - Show all commits

View File

@@ -29,12 +29,12 @@ module.exports = {
message;
let transporter = nodemailer.createTransport ({
host: 'smtp.yandex.com',
port: 465,
secure: true,
host: 'smtp.mail.com',
port: 587,
secure: false,
auth: {
user: 'saburly@yandex.com',
pass: 'WeAreSaburlyTeam',
user: 'saburly@mail.com',
pass: 'KeepSaburly',
},
});

View File

@@ -127,15 +127,18 @@ module.exports = {
intent.slots.Message.value,
destinationEmail
).then(info=>{
console.log(info);
this.response.speak (
'Ok. Message sent. Someone will contact you ASAP'
);
this.emit (':responseReady');
}).catch(error=>{
console.log(error);
this.response.speak (
'Sorry, there was a problem with sending message.'
);
this.emit (':responseReady');
});
this.emit (':responseReady');
}
};