Carrier is a micro service to manage Email notification templates. You can easily create or update your email templates on it, and it will convert simple HTML texts into MJML-generated Email. Once you provided your SendGrid, Carrier will issue a
carrierToken for your service to call and send the generated email with certain data payload.
How to use it?
Setup and prepare the template
- Get the SendGrid API key from https://app.sendgrid.com/settings/api_keys
- Go to https://stargately.com/carrier/templates/settings. Create an account if you do not have one. And place the SendGrid API key into the form and submit.
- Upload your logo as well
- Go to https://stargately.com/carrier/templates/email and click "New Template" to create a new template.
Call Carrier to send Email
- Grab or set the
- Create a carrier client in your server's clients / gateways directory
Then instantiate the client and send email