Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 1.93 KB

File metadata and controls

69 lines (52 loc) · 1.93 KB
layout page
weight 10
title PHP
navigation
show
true

{% anchor h2 %} Parse Webhook {% endanchor %}

In this example, we want to parse all emails at address@email.sendgrid.biz and post the parsed email to http://sendgrid.com/email.php.

Given this scenario, the following are the parameters you would set at the Parse API settings page:

{% codeblock %} Hostname: email.sendgrid.biz {% endcodeblock %}

{% codeblock %} URL: http://sendgrid.com/email.php {% endcodeblock %}

To test this scenario, we sent an email to [email protected] and created the following form at http://sendgrid.com/email.php:

{% codeblock lang:php %}

{% endcodeblock %}

{% anchor h2 %} Event Webhook {% endanchor %}

To use the Event Webhook, you must first setup Event Notification.

In this scenario, we assume you've set the Event Notification URL to go the endpoint /parse.php on your server. Given this scenario the following code will allow you to process events:

{% codeblock lang:php %}

Chick here to get setup.

{% endinfo %}