<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/sending-customer-lifecycle-emails-with-resend-and-inngest-lhfa0ahxk" -->

---
title: Sending customer lifecycle emails with Resend and Inngest
description: A practical walkthrough shows how to build customer lifecycle emails (onboarding, nudges, congratulations) using Next-Auth to trigger events, Inngest to...
canonical: https://daily.dev/posts/sending-customer-lifecycle-emails-with-resend-and-inngest-lhfa0ahxk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Sending customer lifecycle emails with Resend and Inngest | daily.dev
og:description: A practical walkthrough shows how to build customer lifecycle emails (onboarding, nudges, congratulations) using Next-Auth to trigger events, Inngest to...
og:url: https://daily.dev/posts/sending-customer-lifecycle-emails-with-resend-and-inngest-lhfa0ahxk
og:image: https://api.daily.dev/og/posts/lHfa0AhXk.png
og:image:alt: Sending customer lifecycle emails with Resend and Inngest
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Sending customer lifecycle emails with Resend and Inngest

**[Inngest Blog](https://daily.dev/sources/inngest)** · 9 min read · 0 upvotes · 0 comments

## Summary

A practical walkthrough shows how to build customer lifecycle emails (onboarding, nudges, congratulations) using Next-Auth to trigger events, Inngest to orchestrate durable asynchronous workflows, and Resend to handle actual email delivery. It covers transactional versus marketing email distinctions, why SMTP/SES require more expertise than modern ESPs, and includes working TypeScript code for the full event-driven onboarding campaign, with a linked GitHub example repo using Next.js and Prisma.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/blog/lifecycle-emails-with-resend>

## Questions this post answers

### How do I trigger an onboarding email workflow when a user signs up using Next-Auth?

Send a custom event from the Next-Auth createUser callback rather than sending the email directly inside the callback. The event (e.g. user/created) is dispatched to Inngest, which then runs a separate durable workflow function, keeping authentication configuration decoupled from business logic like onboarding emails.

_daily.dev surfaces workflow patterns like this for developers wiring auth events to onboarding logic._

### How can I send a follow-up email only if a user hasn't completed an action within a time limit?

Use Inngest's step.waitForEvent with a timeout parameter, for example waiting one minute for a matching document-creation event tied to the same user's email. If the awaited event doesn't arrive before the timeout, the workflow proceeds to send a nudge email; if it does arrive, it sends a congratulatory email instead.

_developers building conditional email sequences can track patterns like this on daily.dev._

### How do I send transactional emails in a Node.js app using Resend?

Instantiate the Resend client with an API key and call resend.emails.send, passing from, to, subject, and html fields, with an optional replyTo address. The setup requires only an API key and a configured sending domain, after which sending emails becomes a single function call with no additional infrastructure to manage.

_daily.dev helps developers comparing email delivery services like Resend evaluate setup tradeoffs._

## Similar posts on daily.dev

- [Lifecycle Email Marketing: From Lead to Loyal Customer](https://daily.dev/posts/lifecycle-email-marketing-from-lead-to-loyal-customer-4e6hmdvju) · SitePoint · 0 upvotes · 0 comments
- [Integrating Resend with Auth0 for Email Delivery](https://daily.dev/posts/integrating-resend-with-auth0-for-email-delivery-tiasi9k4c) · Auth0 · 0 upvotes · 0 comments
- [Automating Complex Workflow in Your Next.js App with Inngest](https://daily.dev/posts/automating-complex-workflow-in-your-next-js-app-with-inngest-z21aksfdw) · Telerik · 2 upvotes · 0 comments
- [Resend joins the Vercel Marketplace](https://daily.dev/posts/resend-joins-the-vercel-marketplace-t3hgvfr5j) · Vercel · 4 upvotes · 2 comments
- [How to Build a Complete SaaS Payment Flow with Stripe, Webhooks, and Email Notifications](https://daily.dev/posts/how-to-build-a-complete-saas-payment-flow-with-stripe-webhooks-and-email-notifications-5a7lpzzjr) · freeCodeCamp · 1 upvotes · 0 comments

---

Tags: [#inngest](https://daily.dev/tags/inngest), [#nextjs](https://daily.dev/tags/nextjs)

[View this post on daily.dev](https://daily.dev/posts/sending-customer-lifecycle-emails-with-resend-and-inngest-lhfa0ahxk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Sending customer lifecycle emails with Resend and Inngest","url":"https://daily.dev/posts/sending-customer-lifecycle-emails-with-resend-and-inngest-lhfa0ahxk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/sending-customer-lifecycle-emails-with-resend-and-inngest-lhfa0ahxk"},"datePublished":"2026-09-13T19:57:36.590Z","dateModified":"2026-10-15T02:22:42.001Z","description":"A practical walkthrough shows how to build customer lifecycle emails (onboarding, nudges, congratulations) using Next-Auth to trigger events, Inngest to...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4ec60fb849954730e11a370277723e84?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4ec60fb849954730e11a370277723e84?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Inngest Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inngest Blog","logo":"https://media.daily.dev/image/upload/s--ieZKUa5y--/c_limit,w_256/f_auto,q_auto/v1789329423/logos/inngest?_a=BAMAMicg0","url":"https://daily.dev/sources/inngest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/sending-customer-lifecycle-emails-with-resend-and-inngest-lhfa0ahxk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"inngest,nextjs","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inngest Blog","item":"https://daily.dev/sources/inngest"},{"@type":"ListItem","position":3,"name":"Sending customer lifecycle emails with Resend and Inngest"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/sending-customer-lifecycle-emails-with-resend-and-inngest-lhfa0ahxk#faq","mainEntity":[{"@type":"Question","name":"How do I trigger an onboarding email workflow when a user signs up using Next-Auth?","acceptedAnswer":{"@type":"Answer","text":"Send a custom event from the Next-Auth createUser callback rather than sending the email directly inside the callback. The event (e.g. user/created) is dispatched to Inngest, which then runs a separate durable workflow function, keeping authentication configuration decoupled from business logic like onboarding emails. daily.dev surfaces workflow patterns like this for developers wiring auth events to onboarding logic."}},{"@type":"Question","name":"How can I send a follow-up email only if a user hasn't completed an action within a time limit?","acceptedAnswer":{"@type":"Answer","text":"Use Inngest's step.waitForEvent with a timeout parameter, for example waiting one minute for a matching document-creation event tied to the same user's email. If the awaited event doesn't arrive before the timeout, the workflow proceeds to send a nudge email; if it does arrive, it sends a congratulatory email instead. developers building conditional email sequences can track patterns like this on daily.dev."}},{"@type":"Question","name":"How do I send transactional emails in a Node.js app using Resend?","acceptedAnswer":{"@type":"Answer","text":"Instantiate the Resend client with an API key and call resend.emails.send, passing from, to, subject, and html fields, with an optional replyTo address. The setup requires only an API key and a configured sending domain, after which sending emails becomes a single function call with no additional infrastructure to manage. daily.dev helps developers comparing email delivery services like Resend evaluate setup tradeoffs."}}]}
```

