Email Countdown Timer Image with JavaScript

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Learn how to add countdown timer to emails using Next.js API Routes and Cloudinary's image API.
    We'll walk through how to send a Cloudinary image with React Email, how to add text and dynamically generate an image with Cloudinary, use a Next.js serverless API Route to generate the image from an email, and configure response headers to avoid Gmail and other email clients from caching the image response.
    🧰 Resources
    Code: github.com/col...
    Demo: my-email-timer...
    📺 CZcams: czcams.com/users/co...
    🐦 Twitter: / colbyfayock
    📹 Twitch: / colbyfayock
    ✉️ Newsletter: www.colbyfayoc...
    🎥 What I Use: www.colbyfayoc...
    #colbyfayock #nextjs #cloudinary #emailmarketing #countdowntimer #webdevelopment

Komentáře • 15

  • @colbyfayock
    @colbyfayock  Před měsícem

    Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course

  • @deeecode
    @deeecode Před 8 měsíci

    Learnt a couple tips from here. Didn't know that was how Gmail caching works

    • @colbyfayock
      @colbyfayock  Před 8 měsíci

      awesome! happy to hear that 🙌 its a tricky one

  • @gonzalovolonterio4991
    @gonzalovolonterio4991 Před 8 měsíci

    really good tutorial I learn a lot off you thks mate

    • @colbyfayock
      @colbyfayock  Před 8 měsíci

      thank you! glad you found it helpful :)

  • @colbyfayock
    @colbyfayock  Před 8 měsíci

    Get fresh tutorials and other free content straight to your inbox! colbyfayock.com/news

  • @Cloudinary
    @Cloudinary Před 8 měsíci

    Excellent work, Colby!

  • @jawyor-k3t
    @jawyor-k3t Před 8 měsíci

    This is so cool

  • @KyTechInc
    @KyTechInc Před 8 měsíci

    Great video! Definitely some techniques here that will help me build a similar email send function but I want to grab new posts from a blog CMS and send a newsletter. I had been struggling with how to grab that data and pass it to the react-email template since there are awaits and async actions happening that react-email can't handle but I think your approach of using an API route might work the better!

  • @jesusrafaelnavacruz9777
    @jesusrafaelnavacruz9777 Před 4 měsíci

    Could this work, for a timer of days, hours and minutes? and change it dynamically, like the CounterDown Email timers do?

    • @colbyfayock
      @colbyfayock  Před 3 měsíci

      Do you mean like my video but with minutes? Yeah. It just becomes less practical for how often the cache is available

    • @rafaelnava1659
      @rafaelnava1659 Před 3 měsíci

      I loved your video, and I could make my own example, but I would like to know what I could do, so that the countdown is still visualindysin having to go in and out of the mail

    • @colbyfayock
      @colbyfayock  Před 3 měsíci

      @@rafaelnava1659 hey thanks, can you clarify the question? not sure what you mean by the last part