Category Archives: Technical

OneNote and SendGrid’s Event Webhook

Posted on (0 Comments)

SendGrid will let you know, in near real-time, when emails fail to reach your customers. But what do you do after you have that information? Do you have a plan? With this simple app, you can automatically create follow-up actions in Microsoft OneNote, right as email failures occur. In this blog post, I show you how to use Flask (A Python Microframework), hosted on Microsoft Azure, to capture messages regarding email failures sent from the SendGrid Event Webhook. We then create OneNote pages, that contain follow-up actions, based on the particular email failure. Prerequisites This code was developed using Microsoft

READ MORE »

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 »

Double Opt-In Email With Node.js

Posted on (0 Comments)

To get a good reputation as a sender, one of the email best practices we encourage our users to implement is the double opt-in. It’s actually a very simple practice: after a user gives you his/her email, you store their information with an authentication token and a boolean variable. The authentication token is just a randomly generated value. After the user signs up for your newsletter or service, you want to send a simple email asking them to click on a link. This link will have their token and take them to a URL that will make a request to the

READ MORE »

Open Source Documentation: One Year Later

Posted on (0 Comments)

A year ago, we open sourced our documentation, with the hypothesis that it would improve the docs by adding feedback loops and removing barriers that discourage contribution. We also wanted to share what we had learned during the process. I’m glad to say that so far the results have been good, and the decision to open source our documentation continues to help us improve it as a product. Where We Are Now We’ve had 59 different contributors to the docs repo since we open sourced it, with around 15 of those contributors being community members rather than SendGrid employees. Considering

READ MORE »

Migrating an App to SendGrid’s Template Engine

Posted on (0 Comments)

I’ve built a lot of applications to demonstrate what SendGrid can do over the past few years. Recently, I’ve started either updating them, getting rid of really old ones, or replacing them with newer ideas and more modernised examples. With the apps I’ve been updating, the biggest change has been removing all of the inline template code for the emails being generated by the app and moving it to SendGrid’s Template Engine, leaving behind a much cleaner looking codebase and a much more manageable set of templates. Migrating a simple app to Template Engine is really easy, here’s how I

READ MORE »

The Magic Behind Basic HTTP Authentication

Posted on (0 Comments)

  It’s very easy to take things for granted as a developer. We almost always try and use libraries for every and anything to not reinvent the wheel. As I continue to grow, I find myself with a desire to dig deeper and understand the “black boxes” I’ve come to know. Recently, a beginner friend came to me needing a very simple authentication system. I told him about basic HTTP authentication to which he replied, “Sounds cool! How does it work?” I realized I had no idea and pulled up the spec. This one’s for you, Zack! When a request

READ MORE »

Play Reversi Using SendGrid

Posted on (0 Comments)

The following is a guest post by Wataru Sato, a developer who works with SendGrid in Japan. He has a blog at http://awwa500.blogspot.jp/ and you can find his GitHub page here: https://github.com/awwa. I’m from Japan and work with SendGrid there. SendGrid is a powerful email service that sends a large number of emails every day. However, SendGrid’s APIs can also be used for fun! Today, I created a game using SendGrid. It’s called SendGrid-Reversi, and it let’s you play Reversi entirely over email! It runs on Sinatra, the data is stored in MongoDB, and the functionality is built on top of the various

READ MORE »