How do I use sendgrid to receive email and then be able to reply to that email from our domain? Like someone sends an email to contact@lessonshark.com and we reply via contact@lessonshark.com.
Asked
Active
Viewed 1.4k times
1 Answers
9
Take a look at this sample PHP application, the parseListener.php
script in particular. It looks at the text of the email, rolls an arbitrary number of dice based on that text, and then responds to the requester with that many dice rolls.
In order to do something like this, you'll need to deploy that script somewhere accessible to the internet (a hosting company that supports PHP for example), update the code to use your SendGrid username and password, and then configure the SendGrid Parse Webhook to be pointed to the script, e.g. http://example.com/webhooks/parseListener.php

bwest
- 9,182
- 3
- 28
- 58
-
awesome thanks for the quick response, you guys must be watching stackoverflow all the time – cdub Sep 12 '12 at 22:40
-
2+1 on @Brand's sentiments. If you're looking for a javascript example, I have a pretty detailed one here https://github.com/theycallmeswift/playlist.sendgriddemos.com – Swift Sep 13 '12 at 15:01
-
mx.sendgrid is great, tks – Dee Apr 29 '19 at 05:00