Use your own Sendgrid email account to deliver notifications to your users via Engagespot. For this you need a Sendgrid account, and an API KEY from Sendgrid.
Each provider is identified by a unique identifier. Unique identifier of Sendgrid provider is
Enabling Sendgrid Provider
To enable Sendgrid provider, login to your Engagespot dashboard, goto Channels -> Email and enable Sendgrid Provider.
Sendgrid email provider uses
SMTP Provider Configurations.
Sendgrid Provider requires the following configurations.
|API_KEY||Your Sendgrid API Key||Yes||SG.ju725hFjsj9inbV44VctejKLe64lo8vc|
|FROM_NAME||Default from name||No||Anand|
|FROM_EMAIL||Default from email||No||[email protected]|
How we send email via Sendgrid?
There is no rocket science here. We simply use Sendgrid API to deliver your notifications. By default, if you donot override anything, we'll consider your
notification.title as the email subject, a combination of your
notification.message as your email's body (Plain text), and if you have specified
notification.url, we will add a default button to your email with Click Here label.
Sendgrid provider allows you to override all the above configurations (and you can specify several more options) while sending a notification through Engagespot API, using the
To override the configurations, you must supply them via
override.sendgrid_email parameter of the above API. Within the
override parameter, you can supply any parameter that we'll directly pass to Sendgrid
/v3/mail/send API See doc. This makes sure you can use the complete features of Sendgrid API while still using Engagespot to control your notifications!
For example, the below example shows how to send attachments using Sendgrid provier.
"title": "Anand commented on your photo",
"message": "Hey Steve, you're looking cool 😎. Who took this photo?",
"recipients": ["[email protected]"],
"email": "[email protected]"
Within the override object of a provider, there is a
_config property where you can override the default configurations defined in Engagespot dashboard for that provider. This property will be removed before merging the override object with Sendgrid's send API.