Tip: SendGrid sends different request body contents depending on the event you select during the webhook registration. ![]() Note: Replace the email to field with a real email in which you can confirm the email receipt.Ĭonfirm your localhost app receives notifications about the email being both processed and delivered. ![]() Note: Replace the email from field with the email you have registered in SendGrid as sender identity. Open a terminal on your desktop, run the command to export the SendGrid API Key, and then run the curl command. In the My First API Key Name field, type myappkey, and then click Create Key. In the Integrate using our Web API or SMTP Relay page, click Choose in the Web API tile, and then click Choose in the cURL tile. In the SendGrid UI, click Email API on the left menu, and then click Integration Guide. To send an email you can either use SendGrid Web API or SMTP. SendGrid processes your email and upon successful or failed delivery notifies your localhost application accordingly. To activate the webhook you need to send an email through SendGrid. Under Event Webhook Status, click ENABLED and then click Save. Under DELIVERABILITY DATA, select the Select All option. ).Ĭlick Test Your Integration and confirm your localhost app receives information about this test. In the Event Webhook popup, select None as the Authorization Method and in the HTTP Post URL field enter the URL provided by the ngrok agent where your application is available on the internet (i.e. In the Mail Settings page, click Event Webhook. On the left menu, click Settings and then click Mail Settings. ![]() To register an event webhook to your SendGrid account follow the instructions below:Īccess the SendGrid Dashboard, and then sign in using your SendGrid credentials. Ngrok will display a URL where your localhost application is available on the internet (copy this URL for use with SendGrid).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |