• Skip to main content
  • Skip to footer

Dyspatch

  • Products
      • Overview
      Features
      • No-code email builder
      • Email collaboration
      • SMS builder
      • AMP for Email
      • Template localization
      • Expert services
      • Partners & integrations
      •  
      Find your fit
      • Tools for email Designers
      • Dyspatch for translators
      • Email production for Marketers
      • Resources for email Developers
      Sendwithus Logo
      • Overview
      • Analytics
      • A/B testing
      • Triggered emails
  • Pricing
  • Case studies
  • Resources
    • Blog
    • Free templates
    • Webinars
    • Ebooks, guides, & reports
  • Company
    • About us
    • Careers
    • Contact us
  • Login
    • Dyspatch
    • Sendwithus
Get a demo

Implement Transactional Email in 1 Hour or Less

By Dyspatch | June 18, 2014 | Categories: Email Marketing
deliverability myth blog
⏱ 2 minute read

This post outlines how to quickly implement transactional email using the Sendwithus API.

As an example, we’ll show you how CodeCombat uses our API to keep players and contributors up-to-date and engaged with their service.

First, Some Background

Our YC buddies at CodeCombat build a free browser game that teaches players to program while playing an RPG. Players live-code JavaScript to explore dungeons, defeat enemies, and battle other users in muti-player mode.

Earlier this year, the team open sourced the product, so that users could create their own content. Today, they have 155 contributors on Github, and over a 1000 people using their level editor to add to the game.

“Transactional emails are important to keep people engaged, both when playing on and contributing to CodeCombat. And it took just about no time to set up the Sendwithus API.” – Scott Erickson, Co-Founder CodeCombat

By implementing our API, CodeCombat is able to engage players with new challenges and update contributors on changes to their documents.

They were set up and sending email in under an hour. Here’s how they did it.

STEP ONE: Install The Sendwithus API Client

Our open source clients can be found on the Sendwithus Development Page. API’s are available in Ruby, Python, Node.js, PHP, Java, and cURL.

API Client

STEP TWO: Retrieve The API Key

Create a free Sendwithus account and retrieve the ‘Production API Key’ from our ‘API Settings’ Tab.

SWU Dashboard API Key

STEP THREE:  Implement The Code

Reference the Sendwithus Library and input the API Key

https://gist.github.com/mrmch/92d237c88435bf15fad5

Create an API Call with references to the email templates you’ll be using. You can find the email template API IDs under the ‘My Templates’ tab on the Sendwithus Dashboard.

https://gist.github.com/mrmch/955e2e8082dbbf8d32af

Finally, set up a function that triggers an API call. In this case, CodeCombat sends an email if a change is made to a document a contributor is watching.

https://gist.github.com/mrmch/6400f9c926bed147560a

That’s it.

The best part? You can take a look at CodeCombat’s actual commits here and here. 

Dyspatch

With Dyspatch, you can build engaging, interactive emails, without having to write code. By leveraging a custom modular email design system, non-technical teams can deploy beautiful, on-brand campaigns faster and achieve greater operational efficiency.

  • Facebook
  • Twitter
  • Instagram
  • LinkedIn
  • YouTube

    Related Posts

  • Digital Receipts How to Bridge Offline and Online Interactions
  • Takeaways from the Email Design & Marketing Masterclass
  • Take Advantage of Post-Purchase Purchases
Tags: Transactional Email
Share this post:
  • Facebook
  • Pinterest
  • Twitter
  • Linkedin
LET’S CHAT!

Why wait? Take your email marketing to the next level today.

Get a demo

5307 Victoria Drive #899
Vancouver, BC
V5P 3V6

548 Market Street,
San Francisco, California
94104 US

  • Phone 1-877-458-9231
  • Email us@dyspatch.io
    security@dyspatch.io
  • Facebook
  • Twitter
  • Instagram
  • LinkedIn
  • YouTube

Get the latest email strategies, tips, and trends right to your inbox.

About Dyspatch

  • About us
  • Careers
  • Contact us
  • Pricing
  • Press & Media
  • Release Notes

Find your fit

  • Tools for email Designers
  • Dyspatch for translators
  • Email production for Marketers
  • Resources for email Developers

Features

  • Dyspatch overview
  • No-code email builder
  • Email collaboration
  • Email template localization
  • AMP for Email
  • Sample AMP email templates
  • Expert Services
  • Sendwithus Overview
  • Agency Program

Email resources

  • Blog
  • Webinars
  • Ebooks Guides & Reports
  • HTML email templates
  • Knowledge base
  • Figma email builder
  • The Dyspatch Block gallery

Integrations

  • Partners & Integrations directory
  • Email builder for Braze
  • Email builder for Iterable
  • Email builder for Salesforce Marketing Cloud
  • Email builder for Pardot
  • Email builder for SendGrid
  • Email builder for Marketo
  • Email builder for HubSpot
  • Email builder for Oracle Eloqua

Dyspatch respectfully acknowledges the Lekwungen and W̱SÁNEĆ People, whose unceded territories we live and work on. We would also like to express our gratitude to all of the Coast Salish people as we continue to work and live as guests on their lands.

We recognize that acts of colonization created many inequities for First Nations, Inuit, and Métis people. As a company, we acknowledge that we have a responsibility to work towards reconciliation and to remain open to suggestions and consultations, especially with Indigenous communities.

Privacy policy    |    Terms of service    |    Web accessibility    |    Cookie policy    |    Usage    |    Sitemap

Copyright © 2025 Techdrop Labs Inc. All Rights Reserved.


Features & Functionality
Starter Teams Teams+
Universal styling  ✓  ✓  ✓
Drag and drop email builder  ✓  ✓  ✓
Custom code editor  ✓  ✓  ✓
Custom fonts  ✓  ✓  ✓
Device specific elements  ✓  ✓  ✓
Version history  ✓  ✓  ✓
Social media link settings  ✓  ✓  ✓
Commenting  ✓  ✓  ✓
Live previews  ✓  ✓  ✓
Dark mode previews  ✓  ✓  ✓
Litmus testing  ✓  ✓  ✓
Custom merge fields  ✓  ✓  ✓
Image hosting  ✓  ✓  ✓
Brand & legal compliance guardrails  ✓  ✓  ✓
User role permissions  ✓  ✓  ✓
ESP logic  ✓  ✓  ✓
Code Export  ✓  ✓  ✓
AMP Email Support  ✓  ✓  ✓
Approval Workflows  ✓  ✓  ✓
API Access  ✓  ✓  ✓
User Management –  ✓  ✓
Translation (via Smartling) – –  ✓
Export via API – –  ✓
Localizations – –  ✓
Account Manager – –  ✓
Premium Support – –  ✓
SLA – –  ✓
Premium SAML SSO – –  ✓
Custom Themes – –  ✓
Workspaces – –  ✓
Design / AMP Services – –  ✓
Pricing $149/mo $499/mo Custom
Get a demo

Get a quote