cancel
Showing results for 
Search instead for 
Did you mean: 

What is the way to send an email in CAP Nodejs Project?

0 Kudos

So I'm wondering what is the best practice for emailing in CAP Nodejs on each item created?

How & where should i implement this?

View Entire Topic
vvdries
Contributor

Hi Eli,

Like Tim mentioned there is no specific functionality provided by CAP for this.

You could have a look at the following blog post, which could guide you in the right direction to implement such a scenario yourself:

Send an email from a nodejs application | SAP Blogs

In the custom logic of your CAP OData Service you could implement an "after" event handler and call the mail functionality so send an email after the entity has been created.

Hope this can help.

Best regards,

Dries