I’m trying to receive an email / send email to user for a form submission. I’m using SendGrid.com .
My issue is in the pictures below!
I’m trying to receive an email / send email to user for a form submission. I’m using SendGrid.com .
My issue is in the pictures below!
I recommend to install @sendgrid/mail npm. I think it can be easier.
And do yourself a favor. If it’s your real API key, delete this photo asap.
Same as J. D., stick to using SendGrid’s own NodeJS and there are examples in the Wix Corvid forum already for it.
Node Package:
https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-send-email-with-the-sendgrid-npm-interface
As for your code itself for the original SendGrid tutorial that you have used
https://support.wix.com/en/article/corvid-tutorial-sending-an-email-on-form-submission
Your email.jsw should have the import from the backend like this.
import {sendWithService} from 'backend/sendGrid';
If you are still struggling then watch this youtube video that takes you all the way through it.
How To Send An Email Notification After Form Submission in Wix - Wix Code Tutorial - YouTube
Finally, as J. D. states, please remove any API key from this forum and if you must post it, then either blank it out on your pic before posting, or change it for something simple like API KEY HERE.