top of page

Sending an email via SendGrid REST API involves using a backend web module and the wix-fetch API to call SendGrid.

Note you can replace the SendGrid API with any other Email API by providing a replacement for the sendGrid.js file.

To run this live example you are required to register with SendGrid, issue an API Key with permission to send emails, and paste the API Key into the Sendgrid API Key input field.

When clicking the Send Email button, the sendEmail web method (exported from the sendEmail web module, located in the Backend folder) is called. The sendEmail module uses the sendGrid module to perform the actual call to the SendGrid REST API via the wix-fetch HTTP API.

To Email:

From Email:

Subject:

Email:

Sendgrid API Key:

Send Email
bottom of page