SendGrid Email Function
Cosmic Function that enables you to send emails using SendGrid.
Deploying the Function
- Login to Cosmic JS and go to Your Bucket > Settings > Functions
- Install the SendGrid Email Function
- Add your SENDGRID_API_KEY environment variable.
- Deploy the function and get your endpoint
Testing the Endpoint
You can use Postman to test the endpoint with the following POST variables:
That's it! No managing or maintaining a server, just code and deploy!