Category Archives: Technical

Looking Back: The Top Email Posts From June

Posted on (0 Comments)

We strive to provide helpful, interesting, and informative content about all things email on the SendGrid blog. In June, we touched on some great topics, including email security, email templates, and webhooks. In case you missed them, below is a wrap-up of the blog posts that we think you’ll find most helpful to your email campaign: SendGrid and the Future of Email Security Our Chief Security Officer, David Campbell, announced that SendGrid is now utilizing opportunistic TLS encryption to make sure that the mail customers send through SendGrid is secure. SendGrid’s Template Engine Tutorial We provided an online tutorial to guide

READ MORE »

Tokens & More Tokens! An Intro to JSON Web Tokens (JWT) in Go

Posted on (0 Comments)

Recently, my buddies from Blimp piqued my interest about JSON Web Tokens (JWT). You can find very detailed specs about it here and here. In this post, I want to guide you through implementing the equivalent of sessions, but with JWT. The traditional session approach usually requires the client to store some sort of value in its cookies, while the server must have some sort of session storage where it stores that same value. For each request the client makes, the server has to make a network trip to check that the cookie’s value is in the session storage. What if there

READ MORE »

Intro to Golang

Posted on (0 Comments)

An Introduction to the Go Programming Language (And Why I Love It) If you follow me on Twitter, you’ll no doubt know that I’m a huge fan of Go. You may have read my endless stream of Tweets ogling its brilliance, complaining about its few pitfalls, and bathing in the sweet, sweet light that is the over-indulgent default package set. But why? Why am I constantly marveling over this language, and frequently choosing it above others? I hope to clear that point up in this blog, introduce you to Golang, its wonders, its pitfalls, and introduce you to how SendGrid is

READ MORE »

What’s a Webhook?

Posted on (0 Comments)

A webhook is an API concept that’s growing in popularity. As more and more of what we do on the web can be described by events, webhooks are becoming even more applicable. They’re incredibly useful and a resource-light way to implement event reactions. So, what exactly is a webhook? 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. Unlike typical APIs where you would need to poll for data very frequently

READ MORE »

Create your First Heroku Buildpack

Posted on (0 Comments)

Did you know you can install custom software on Heroku? You can, using buildpacks. In this tutorial, I show you how to write a custom buildpack. I’ll use MuPDF, a handy utility to convert PDFs to PNGs, as an example. Replace the MuPDF parts with the binary you want. Create the Binary Before we can create the buildpack, we need to create the binary on the Heroku server environment. Make the binary. Begin by creating a heroku app. heroku create buildpack-stager heroku run bash –app buildpack-stager Then ssh into the server. heroku run bash –app buildpack-stager Make the binary. curl

READ MORE »

An Intro to Scala and Sending Email in the JVM via SendGrid

Posted on (0 Comments)

SendGrid and the Java Virtual Marketplace Are you a Java developer looking to use the Java Virtual Machine (JVM) in different ways like Clojure? If you’re looking into Scala, then this post might be able to help you out. Scala runs in the JVM. If you weren’t aware, all of your Java code can run in Scala. Pretty awesome, right? For example, the SendGrid JAR recently went through some major changes in order to make it more robust. You can use the old JAR as well as the new one because in the end, it all becomes bytecode for the JVM. Differences Between Java

READ MORE »

Create a Basic Contact Form with SendGrid and PHP

Posted on (0 Comments)

Here at SendGrid we really enjoy a nice, structured, robust IPA, err, API. So much so, that after having to edit my own website’s contact form due to the changes Yahoo and AOL recently made to their DMARC policies, I decided this time to use SendGrid’s Web API using cURL PHP and to share the coding in an effort to help out others in similar situations. I then took it a step further to have my contact form also post this message content to a Google document, using my free Zapier account. What You Need A SendGrid Account A Machine

READ MORE »