Cosmic Function that enables you to send emails using SendGrid.
- 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
You can use Postman to test the endpoint with the following POST variables:
to,from,subject,text_body, and html_body
That's it! No managing or maintaining a server, just code and deploy!
