Author Archives: Kunal Batra

About Kunal Batra

Meet Kunal, Developer Evangelist at-large for SendGrid and home-grown New Jersey hacker. He previously ran General Machines, which developed Deaftel - a phone service for the deaf that converts voice to text and text back into voice over a phone call. Since March 2013, Kunal has been working as a Developer Evangelist at SendGrid, helping enable developers to get the tools and resources they need to make awesome, creative stuff.

Kunal Batra on Twitter

Articles Posted by Kunal


Connecting Inbound Email to Google Spreadsheets

Posted on (0 Comments)

One of the questions I get asked a lot is how to get information from incoming emails entered into a Google Spreadsheet. In this post, I’ll show you one implementation on how to do this with the gspread module in Python. Getting Started with Our Parse Webhook The first thing we need to do is tell your domain that SendGrid will handle the email on its behalf. Then we tell SendGrid where to post the data from the email: Modify MX Records Change the MX Records of your domain to point to mx.sendgrid.net. This lets the registrar know that SendGrid

READ MORE »

Geographic List Segmentation With Event Webhook

Posted on (0 Comments)

Do you have an email list and want it segmented by geographic location? This blog post has got you covered! To accomplish this task, we take advantage of SendGrid’s Event Webhook. If you’re not familiar with what a webhook is you can find out more HERE. But to give a brief intro, webhooks are reverse API calls. Normally, when your application takes advantage of SendGrid, it tells us through our API to send out a marketing campaign or maybe some type of account notification email. With webhooks, SendGrid now sends YOUR application data. Event Webhook   This webhook will send your

READ MORE »

Startup Resources

Posted on (0 Comments)

Startups Are Everywhere We hear a lot about startups in the news, blogs, movies, and even commercials. The notion of creating a product with nothing but sheer willpower, ramen, some college buddies, and an empty garage sounds romantic. Dreams of hockey stick growth, press in TechCrunch, and Mark Cuban becoming an investor feels inevitable. In my opinion those hopes and dreams are fuel in the nascent stages of your company, but not usually what happens. It’s Hard It’s hard work finding product-market fit. That process takes time, money, and resources (commodities most startups are lacking). However, many companies such as

READ MORE »

Optimize Fourthmeal: Tacos, Knapsacks and Webhooks

Posted on (0 Comments)

We have all wondered how to get the most bang for your buck while shopping. The constraint is most commonly your budget, which could be currency, capacity or even calories. You also want to optimize for value. Fortunately, computer scientists have a way of solving these problems with the knapsack algorithm. That’s exactly what I used at the recent TechCrunch Disrupt Hackathon to fit the most food I could into a Taco Bell order based on the amount of money available. In this post, I’ll tell you exactly how I did it. TacoBell Disrupt | Disrupt NY 2014 Hackathon Let’s

READ MORE »

Make Your Mac Speak Incoming Emails

Posted on (0 Comments)

There are a lot of great use cases and business applications of our Inbound Parse Webhook. But sometimes you just want to hack for fun. Since the Parse Webhook is interactive and real-time, it’s a good one for hacking. In this blog post we are going to mashup some Python, the Parse Webhook, ngrok and osascript to make your Mac speak incoming emails. Set Up Incoming Emails The general idea is: receive an email, have your machine speak the subject. To achieve the first part, we need to receive emails in our application, which is easy with the Parse Webhook.

READ MORE »

How to Get SMS Alerts When a User Opens an Email

Posted on (0 Comments)

Has there ever been a time when you wanted to know if someone opened up an important email? Maybe you want to get a real-time alert when people mark your email as spam. Or perhaps get immediately notified if a user clicks on your email’s unsubscribe link. This is possible with our Event Webhook plus an SMS API of your choosing. In this example, I will showcase a small Python program that will receive event data from SendGrid and SMS alert a user with the Twilio API. Easy as One, Two, Three Log in to SendGrid and go to your

READ MORE »

Control Home Lighting with the Parse Webhook

Posted on (1 Comment)

Our Parse webhook lets your application receive inbound email. The common use cases for this tend to be web app related. It’s awesome for creating applications like a support ticketing system or receiving data for a social or content management site. In this post, I’ll share how well it also works to control web-enabled hardware. Specifically, I’ll be using inbound email to control home lighting with the Philips Hue light bulbs. For the next few days, anyone can control the lights in my apartment and I’ve set up a livestream (embedded above) to show the current status. There is a

READ MORE »