Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide lambda function example to send email notification #20

Closed
fabarea opened this issue Oct 1, 2019 · 1 comment
Closed

Provide lambda function example to send email notification #20

fabarea opened this issue Oct 1, 2019 · 1 comment

Comments

@fabarea
Copy link

fabarea commented Oct 1, 2019

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.

@sdras
Copy link
Owner

sdras commented Aug 6, 2020

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!

@sdras sdras closed this as completed Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants