Provide lambda function example to send email notification
fabarea opened this issue · comments
It may be out of scope of this project - and in this case just close the issue - but since I was digging how to send email notifications upon order I made this commit that I am reporting here. Code is not complete since it is not showing how axios should trigger the notification and should go something like that.
axios.post('/.netlify/functions/notify', {
body: 'todo...'
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
I can not create a direct PR since I modified other stuffs that is related to the layout.
Yeah, this is out of the scope of this project, I'm still trying to keep it a smaller project so that it's not hard for people to get going. Thanks!