I’m currently getting the Word of the Day from Longman Dictionary – what I’d like to do next is to use a webhook to send an email containing the Word of the Day. Has anyone figured out how to do this without running a local or virtual server?

I thought IFTTT would be the perfect solution for this since it has both an Email service and a Webhooks service, but alas I was not able to make it work because I couldn’t figure out how to pass the word and definition (see data below) as GET params in the webhook.

It would be awesome if Morph.io could offer a webhook POST composer like Customer.io so we can easily define the payload:

In order to send an email, you will need to write some code in your scraper which makes a POST request to your external email service’s endpoint. I’m not too familiar with IFTTT or nodejs, but fundamentally, you scraper will need to assemble a json payload object - it will probably look something like

{
"to": "foo@bar.baz",
"subject": "foo",
"body": "bar, baz"
}

and then use the request library to assemble a HTTP request which POSTs that payload to your email service’s endpoint (I guess you’ll have a URL something like https://ifttt.com/email/send). You will probably also need to construct some custom header to pass an authentication token or api key or something.