Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send webhook upon sending or receipt of email [closed]

I have been looking around for how to create a webhook that is triggered when an email is sent or received in Gmail. For example someone sends an email, that email gets POSTed as a JSON object to one of my applications. I have found many middleman applications/services that do this (zapier offers all the functionality I want, but it costs money), but I can't find any documentation on how to actually do this myself so I don't need to pay for it.

Is this possible?

like image 326
Ryan-Neal Mes Avatar asked May 29 '14 07:05

Ryan-Neal Mes


People also ask

Can an email trigger a webhook?

Webhook event types Webhooks can be setup to trigger for different events: NEW_EMAIL (or EMAIL_RECEIVED ) - triggered when an inbox receives a new email.

How do you send data on webhook?

With webhooks, it's generally a three-step process: Get the webhook URL from the application you want to send data to. Use that URL in the webhook section of the application you want to receive data from. Choose the type of events you want the application to notify you about.

Is webhook post or get?

By definition, a webhook (also called a web callback or HTTP push API) is a way for an app to provide other applications with real-time information. A webhook delivers data to other applications as it happens, meaning you get data immediately.


Video Answer


2 Answers

After some research the best solution I could find was to use the gmail API

To achieve the functionality that zapier offers you would have to have a service or something polling google and querying the status of a users in box. There are also a couple of ways to trigger calls to code, but I do not think this is what zapier does. Check the gmail API for more information.

like image 87
Ryan-Neal Mes Avatar answered Oct 21 '22 03:10

Ryan-Neal Mes


You can try using context.io They allow you to connect multiple gmail (and others) mailboxes and then create webhooks for different actions. They handle the polling for you and then whenever the condition is met, they call the URL that you provide.

like image 4
oarevalo Avatar answered Oct 21 '22 02:10

oarevalo