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 [email protected] and we reply via [email protected].
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With