change email service
This commit is contained in:
@@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user