Meteor is a relatively new JavaScript framework that is becoming quite popular. It lets you build real-time web apps rapidly. My fellow developer evangelist @
scottmotte has already written about how you
send email with Meteor. In this blog post, I want to expand on this and showcase how your Meteor application can
receive inbound email, as well.
To receive email, you can use SendGrid's
inbound Parse Webhook. This will POST new emails to any URL you specify. Since we want to receive email with Meteor, we need to add a Meteor route.
Once you have Meteor installed, you want to
set up Meteorite to handle packages. Then you can add the router functionality:
mrt add router
Next, modify your JavaScript to add your route and action: