• 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

How to Send Email like Uber

By Dyspatch | May 18, 2015 | Categories: Email Marketing
sending email like uber blog
⏱ 4 minute read

Uber is a company built around the customer experience; from the slick app to professional drivers, every step is designed to convey a polished brand and experience.  One of my favorite parts of the Uber experience is the receipt email you get after taking a ride. And that’s not just because I’m an email buff – Uber does an exceptional job of including dynamic content in the subject line of every ride receipt.

Take a look at a snapshot of my inbox:

Dynamic Content in Uber ride receipts

Dynamic Content in Uber ride receipts

With every receipt you receive from Uber, the subject line dynamically includes a simplified version of the time of day. Instead of, “Your Sunday 8:15AM PST trip with Uber“, Uber simplifies it to just “Your Sunday Morning trip with Uber“. This is a simple example of how important Uber views the customer experience, and a great example of dynamic content.

What’s Dynamic Content?

Dynamic content is content that changes for each individual recipient. In the Uber example, a calculation is performed on the time of day and instead of the date and time being shown, it’s replaced with a simple string like “Monday afternoon”. Each time Uber sends a receipt email, a template engine renders the email with the dynamic content.

Think of it as variable replacement – or merge tags – on steroids. Another great example of dynamic content is changing an image in every email depending on what city your recipient is based in.

Why Does Dynamic Content Matter?

Email, especially transactional email, is a direct extension of your product, so it functions as a reflection of how much you care about your user experience. Dynamic content allows you to customize every email to each customer’s unique interaction with your product or service. An email triggered by taking an action on your site should feel like a reward to the customer for engaging, and using dynamic content in your emails is a great way to move in that direction.

In short, you’ve gone to great lengths to make sure every other facet of your online presence has some life to it, it’s time to stop overlooking your emails.

I’m Sold! So How Do I Send Email Like Uber?

It’s really easy… if you’re using a template engine like Sendwithus. There are definitely ways to get this working with other systems, but you can drop the following code into a Sendwithus template and have it working right away.

First up, let’s talk about how we’re going to break down the day. This might change in different countries – (and Sendwithus’s internationalization support can handle it!) – but this breakdown will cover most of North America:

Time of Day Simplified Form
5am to 12p Morning
12p to 5pm Afternoon
5pm to 8pm Evening
8pm to midnight Night
midnight to 4am Late Night

We’re going to assume you’re sending a transactional email with a unix timestamp variable called “event_time”.In your Sendwithus editor, open up the template you want to add dynamic content to, and drag open the subject line box (see below):

drag here

Copy and paste the following code into the subject line box:

{% set hour = int(event_time|timestamp_to_time|datetimeformat("%H")) %}
{% set day = event_time|timestamp_to_time|datetimeformat("%A") %}
{% if hour >= 5 and hour < 12 %} {% set daytext = "Morning" %} {% elif hour >= 12 and hour < 17 %} {% set daytext = "Afternoon" %} {% elif hour >= 17 and hour < 20 %} {% set daytext = "Evening" %} {% elif hour >= 20 and hour < 24 %}
{% set daytext = "Night" %}
{% else %}
{% set daytext = "Late Night" %}
{% endif %}
{{ day }} {{ daytext }}

Go ahead and save your template and you’re ready to go! To get an idea of what this will look like in production, send a test email directly from your app, or use our built-in previews. Open up the preview pane and add a value for the “event_time” (in this example I’m using 1424197820)

add variable

Add event_time and Show in Browser

Here’s an example of what one of my tests looked like:

Example

Example “Tuesday Late Night” dynamic content

Wrapping Up

This is just one example of how dynamic content can be used to make transactional email really great. We can already see many breakout companies like Uber and AirBnB put a real emphasis on the email experience, and this trend is definitely here to stay. There are many other creative ways to use dynamic content, but this, in particular, is a fairly easy way to make things just a little more personal.

If you’ve seen any amazing uses of dynamic content, or want to know if something else is possible, hit us up either in the comments below or on Twitter.

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

  • The Email Marketer’s Toolkit: Scaling Personalized Email Campaigns
  • Best of LinkedIn: A Roundup of Advice for Marketers for 2025
  • Transactional Email Hall of Fame – November 2018
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