Example: Send email with the SendGrid NPM interface.

Update: I have installed the NPMs now working with the new code.


but I am slightly confused about what to follow, as mentioned in the post above I want to add the triggered email to this? https://support.wix.com/en/article/corvid-tutorial-sending-an-email-on-form-submission I follow this. there seems to be a different set of circumstances, members / from contact / from form. Also 2 different modules sendgrid client/mail - I previously had just the backend functions email.jsw & sendgrid.js. I really just need a clean update and remove any old methods, they are getting all mixed up, so

Any recommendation on the best method ?