Cosmic Function to send emails using SendGrid
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
function.json
index.js
package-lock.json
package.json
test.js

README.md

SendGrid Email Function

Cosmic Function that enables you to send emails using SendGrid.

Deploying the Function

  1. Login to Cosmic JS and go to Your Bucket > Settings > Functions
  2. Install the SendGrid Email Function
  3. Add your SENDGRID_API_KEY environment variable.
  4. Deploy the function and get your endpoint

Testing the Endpoint

You can use Postman to test the endpoint with the following POST variables:

to,from,subject,text_body, and html_body

Maintainence

That's it! No managing or maintaining a server, just code and deploy!