<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lalit Kumar Jangid</title>
    <description>The latest articles on DEV Community by Lalit Kumar Jangid (@lalitkumarjangid).</description>
    <link>https://dev.to/lalitkumarjangid</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3422354%2F2cb52798-7247-4769-a31e-1513864ac683.jpg</url>
      <title>DEV Community: Lalit Kumar Jangid</title>
      <link>https://dev.to/lalitkumarjangid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lalitkumarjangid"/>
    <language>en</language>
    <item>
      <title>Your app's emails and your newsletter don't need two providers</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Sat, 28 Nov 2026 14:51:33 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/your-apps-emails-and-your-newsletter-dont-need-two-providers-25m0</link>
      <guid>https://dev.to/lalitkumarjangid/your-apps-emails-and-your-newsletter-dont-need-two-providers-25m0</guid>
      <description>&lt;p&gt;Most products end up with two email tools. One sends password resets, receipts and verification links from code. The other sends the newsletter and launch announcements from a dashboard someone in marketing logs into.&lt;/p&gt;

&lt;p&gt;The second bill is the small cost. The bigger one is two sets of SPF and DKIM records on the same domain, two places to check when something bounces, and two tools to keep in sync when someone unsubscribes.&lt;/p&gt;

&lt;p&gt;I build Cresca, where both live in one account. Here's what that looks like from the code side, in three steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Send the password reset from your server
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://api.cresca.xyz/api/v1/emails'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'POST'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${process.env.CRESCA_API_KEY}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'Content-Type'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'application/json'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'Idempotency-Key'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`password-reset/${resetToken.id}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Acme &amp;lt;hello@acme.com&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;subject&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Reset your Acme password'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`&amp;lt;p&amp;gt;Choose a new password: &amp;lt;a href="${resetUrl}"&amp;gt;reset link&amp;lt;/a&amp;gt;. It works for 60 minutes.&amp;lt;/p&amp;gt;`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Cresca ${res.status}: ${err.name}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details matter here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;Idempotency-Key&lt;/code&gt;.&lt;/strong&gt; If the request times out and your code retries, the API returns the first result instead of sending a second reset email.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use a Sending access key.&lt;/strong&gt; It can send email but can't read your logs or change templates, so a leaked key does less damage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Receipts that go out together can use &lt;code&gt;POST /emails/batch&lt;/code&gt;, which takes up to 100 emails per request.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Add the new user to your newsletter list, if they said yes
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://api.cresca.xyz/api/v1/contacts'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'POST'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${process.env.CRESCA_FULL_ACCESS_KEY}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'Content-Type'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'application/json'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;list_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Product updates'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;contacts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;first_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;firstName&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The list is created if it doesn't exist yet, and one request can carry up to 1,000 contacts. This call needs a full-access key, so it stays on the server too.&lt;/p&gt;

&lt;p&gt;Only add people who opted in to marketing email. In most places, signing up for your product isn't consent to your newsletter.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Write the newsletter without writing HTML
&lt;/h2&gt;

&lt;p&gt;Campaigns don't come from code. Someone on the team opens the app and describes the email in one sentence, like "Announce dark mode, keep it short, one button to try it." The AI writes the copy and subject line, applies your brand and lays out the email. Then a fact-check pass removes claims the brief didn't make, so it won't promise a discount you never offered.&lt;/p&gt;

&lt;p&gt;They pick the "Product updates" list and send it from the same verified domain your password resets use.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foxd5u2bzrq4ddr3c5v7y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foxd5u2bzrq4ddr3c5v7y.png" alt="A one-line brief on the left, the finished email on the right" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What one account changes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One domain setup.&lt;/strong&gt; You verify your sending domain once, with SPF and DKIM, and both kinds of email use it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One place to look.&lt;/strong&gt; App emails and campaigns are in the same account when you're checking why someone didn't get something.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bounces and complaints are suppressed automatically&lt;/strong&gt;, so a dead address stops getting mail.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What isn't there yet: automated email sequences are still launching soon, and there's no A/B testing. If you need those today, plan around it.&lt;/p&gt;

&lt;p&gt;The Free plan runs 30 days with no credit card. It includes 1,000 emails, the API and the AI agent, so you can wire up step 1 and send a real campaign in an afternoon: &lt;a href="https://www.cresca.xyz/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=one-account" rel="noopener noreferrer"&gt;cresca.xyz&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A question for you:&lt;/strong&gt; do you send app email and marketing email from one provider or two? If two, was that a choice, or just how it grew?&lt;/p&gt;

</description>
      <category>email</category>
      <category>webdev</category>
      <category>api</category>
      <category>node</category>
    </item>
    <item>
      <title>We could count our signups but not say where a single one came from. Here's the fix.</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Sat, 28 Nov 2026 11:05:51 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/we-could-count-our-signups-but-not-say-where-a-single-one-came-from-heres-the-fix-1le1</link>
      <guid>https://dev.to/lalitkumarjangid/we-could-count-our-signups-but-not-say-where-a-single-one-came-from-heres-the-fix-1le1</guid>
      <description>&lt;p&gt;Our analytics told us how many people signed up. It couldn't tell us which page, search or link brought any one of them. GA4 knew a signup came from "Organic Search" and landed on the homepage. Our database knew the account. Nothing joined the two.&lt;/p&gt;

&lt;p&gt;When signups looked low last week, that gap meant we were guessing.&lt;/p&gt;

&lt;p&gt;The setup is a common one: a marketing site on &lt;code&gt;www&lt;/code&gt; (Next.js) and the app on a subdomain (React + Vite), with the signup form in the app. This is what we shipped to record the first touch on every new account, with no third-party tool and no personal data.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Record the first visit in a cookie both subdomains can read
&lt;/h2&gt;

&lt;p&gt;The marketing site sets one first-party cookie on the parent domain the first time someone visits. It never overwrites it, so it keeps the first touch even if the visitor comes back three times before signing up.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;COOKIE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'first_touch'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;MAX_AGE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;24&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// 90 days&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;UTM_KEYS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'utm_source'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'utm_medium'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'utm_campaign'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'utm_term'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'utm_content'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;externalReferrer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;referrer&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hostname&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'example.com'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hostname&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;endsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'.example.com'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sb"&gt;`${ref.origin}${ref.pathname}`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// no query string&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cookie&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'; '&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;some&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${COOKIE}=`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;URLSearchParams&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;search&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;touch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;lp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pathname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;externalReferrer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="no"&gt;UTM_KEYS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;touch&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cookie&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`${COOKIE}=${encodeURIComponent(JSON.stringify(touch))}; path=/; max-age=${MAX_AGE}; SameSite=Lax; Secure; domain=.example.com`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three choices matter here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;domain=.example.com&lt;/code&gt;&lt;/strong&gt;, so the app subdomain can read what the marketing site wrote.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Origin and path only for the referrer.&lt;/strong&gt; A referrer's query string can carry search terms or tokens, and we don't want them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;First touch, not last.&lt;/strong&gt; Last touch tells you which page closed the deal. We wanted to know what found them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. The app captures it too, then sends it with the signup
&lt;/h2&gt;

&lt;p&gt;Some people land on the app first, from a link in a doc or a direct signup URL. The app runs the same capture and prefixes the path with &lt;code&gt;app:&lt;/code&gt; so we can tell them apart.&lt;/p&gt;

&lt;p&gt;At signup it reads the cookie and adds two things: the page the form was on, and GA4's client id from the &lt;code&gt;_ga&lt;/code&gt; cookie, so an account can be matched to its sessions later.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;gaClientId&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cookie&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'; '&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'_ga='&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="no"&gt;GA&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;\&lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;\&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;\&lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/auth/signup'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;acquisition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;getAcquisition&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Google sign-in uses the same object, sent in the body of the call that creates the account.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The server trusts none of it
&lt;/h2&gt;

&lt;p&gt;It's client data, so the backend only ever stores it. Every field is a trimmed, length-capped string, unknown keys are dropped, and anything malformed is ignored instead of failing the signup.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;FIELDS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;landingPage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;referrer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;utmSource&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;utmMedium&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;utmCampaign&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;signupPage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;clean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'string'&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;\&lt;span class="n"&gt;u0000&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;\&lt;span class="n"&gt;u001f&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;sanitizeAcquisition&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s1"&gt;'object'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isArray&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;FIELDS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;clean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ga&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;clean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gaClientId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/^&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;\&lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ga&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gaClientId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ga&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two bugs I nearly shipped:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Our request validator strips unknown keys. Until I added &lt;code&gt;acquisition&lt;/code&gt; to the schema, the field silently vanished before the controller ever saw it.&lt;/li&gt;
&lt;li&gt;My first schema was &lt;code&gt;Joi.object().max(12)&lt;/code&gt;. That would have rejected the whole signup if a browser sent something odd. A bad source value should never cost you a signup, so the validator now accepts anything there and the sanitizer drops what it doesn't like. A &lt;code&gt;{ "$ne": null }&lt;/code&gt; sent as a field becomes nothing, not a database operator.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it doesn't do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It only covers accounts created from now on. There's nothing to backfill.&lt;/li&gt;
&lt;li&gt;If cookies are blocked, there's no source. Signup still works.&lt;/li&gt;
&lt;li&gt;It's first touch only. Every touch is a different table.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Our admin screen now shows "Came from: referrer → landing page" on each new account. It's a small change, but it's the difference between guessing and knowing which pages bring people who sign up.&lt;/p&gt;

&lt;p&gt;I build &lt;a href="https://www.cresca.xyz" rel="noopener noreferrer"&gt;Cresca&lt;/a&gt;, an email platform, and this is running there now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A question for you:&lt;/strong&gt; do you record first touch, last touch, or both at signup? If both, has the difference ever changed what you built next?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>node</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Mailchimp Export: Cleaned vs Subscribed vs Unsubscribed, and How to Import It Safely</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Sun, 22 Nov 2026 08:35:22 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/mailchimps-export-is-a-zip-of-three-lists-importing-all-of-them-is-the-mistake-3eda</link>
      <guid>https://dev.to/lalitkumarjangid/mailchimps-export-is-a-zip-of-three-lists-importing-all-of-them-is-the-mistake-3eda</guid>
      <description>&lt;p&gt;Since Bending Spoons agreed to buy Mailchimp on November 19, a lot of people have been clicking &lt;strong&gt;Export Audience&lt;/strong&gt; to make a backup or try another tool.&lt;/p&gt;

&lt;p&gt;What they get is a ZIP. Inside are separate CSV files: one for subscribed contacts, one for unsubscribed, one for cleaned (Mailchimp's word for addresses that bounced), and one for non-subscribed.&lt;/p&gt;

&lt;p&gt;Feed that ZIP, or all its files, into a generic CSV importer and every row becomes an active contact. Your first campaign from the new tool then goes to people who opted out and to addresses that bounce. That's a quick way to get a fresh sending domain flagged as spam.&lt;/p&gt;

&lt;p&gt;We just shipped a Mailchimp import in &lt;a href="https://www.cresca.xyz" rel="noopener noreferrer"&gt;Cresca&lt;/a&gt; that takes the ZIP as it comes. The rules are simple:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;subscribed&lt;/td&gt;
&lt;td&gt;Imported as contacts, with tags and fields&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;unsubscribed&lt;/td&gt;
&lt;td&gt;Added to the account's suppression list&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cleaned&lt;/td&gt;
&lt;td&gt;Added to the suppression list as a hard bounce&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;nonsubscribed / transactional&lt;/td&gt;
&lt;td&gt;Skipped and reported&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Getting there took longer than the table suggests. Here are the five things that bit us.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. "subscribed" is inside "unsubscribed"
&lt;/h2&gt;

&lt;p&gt;We detect each file's type from its name. The obvious version is wrong:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'subscribed'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;'subscribed'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// matches "unsubscribed" too&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;unsubscribed_…csv&lt;/code&gt; and &lt;code&gt;nonsubscribed_…csv&lt;/code&gt; both contain "subscribed". Check the longer names first and match on the prefix:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'unsubscribed'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'nonsubscribed'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'cleaned'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'transactional'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'subscribed'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// unknown file: reject with a clear message, never guess&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If we can't tell what a file is, we reject the upload instead of treating it as subscribers. Guessing wrong here means emailing people who said no.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Our own test file broke the parser
&lt;/h2&gt;

&lt;p&gt;We generated a test ZIP whose CSVs quote every field and start with a UTF-8 byte order mark (BOM). Both are common: many exporters quote every field, and Excel's "CSV UTF-8" format adds a BOM. The import failed with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;subscribed_….csv has no "Email Address" column.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The column was right there. The problem was the order of bytes: &lt;code&gt;EF BB BF&lt;/code&gt; followed by &lt;code&gt;"Email Address"&lt;/code&gt;. Because the BOM sits &lt;em&gt;before&lt;/em&gt; the opening quote, the CSV parser doesn't see a quoted field. It reads the quote characters as part of the header name, so the header became &lt;code&gt;"Email Address"&lt;/code&gt; with the quotes in it. Stripping the BOM from the header string afterwards didn't help, because the quotes were still there.&lt;/p&gt;

&lt;p&gt;The fix is to drop the BOM from the bytes before parsing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mh"&gt;0xef&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mh"&gt;0xbb&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mh"&gt;0xbf&lt;/span&gt;
    &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;subarray&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One line, plus a test for "BOM + quoted header". If you have a CSV import anywhere, it's worth checking yours for this.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Tags are a CSV inside a CSV
&lt;/h2&gt;

&lt;p&gt;Mailchimp's TAGS column holds a quoted, comma-separated list in a single cell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csvs"&gt;&lt;code&gt;&lt;span class="s2"&gt;"Customer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s2"&gt;"VIP"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the CSV layer has unquoted the cell, you still have to split it without breaking tags that contain commas. We match the quoted parts first, then split whatever is left on commas, then trim and de-duplicate case-insensitively.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Order matters: suppress first, import second
&lt;/h2&gt;

&lt;p&gt;An address can end up in both a suppression file and a subscribed file, for example when you import several audiences or a file someone edited by hand. So we process the unsubscribed and cleaned files &lt;em&gt;before&lt;/em&gt; the subscribed one, and a subscribed row whose address is already suppressed is skipped and counted.&lt;/p&gt;

&lt;p&gt;Two more rules sit underneath:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A stronger reason is never replaced by a weaker one.&lt;/strong&gt; If an address is already suppressed for a spam complaint, importing it as "unsubscribed" doesn't downgrade it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An unsubscribe only stops marketing email.&lt;/strong&gt; Password resets and receipts sent through the API still reach that person. A hard bounce or complaint blocks everything.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Suppressions are written in batches of 1,000, so a list with tens of thousands of old unsubscribes doesn't take minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Existing contacts weren't added to the new list
&lt;/h2&gt;

&lt;p&gt;Our first upsert looked like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;updateOne&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;owner&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;update&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$setOnInsert&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;upsert&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's right for new contacts and safe for existing ones, because it never overwrites a name. But it also meant that importing a second Mailchimp audience into a second list left every contact who was already in Cresca out of that list.&lt;/p&gt;

&lt;p&gt;The fix keeps &lt;code&gt;$setOnInsert&lt;/code&gt; for the contact's data and adds the list and tags with &lt;code&gt;$addToSet&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;update&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;$setOnInsert&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nv"&gt;$addToSet&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;lists&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$each&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;listIds&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$each&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;tags&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The import also never re-activates a contact who is unsubscribed, bounced or complained. Being in a "subscribed" file from another tool isn't consent.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an export can't carry
&lt;/h2&gt;

&lt;p&gt;No export moves automations, so write down each Mailchimp journey's trigger, emails and delays before you cancel. Campaign reports stay behind too, so download the ones you want to keep.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part I don't know yet
&lt;/h2&gt;

&lt;p&gt;We match Mailchimp files on their name prefixes (&lt;code&gt;subscribed_&lt;/code&gt;, &lt;code&gt;unsubscribed_&lt;/code&gt;, &lt;code&gt;cleaned_&lt;/code&gt;). Mailchimp's help pages say the ZIP holds one CSV per contact status, but they don't document the file names, so they could change.&lt;/p&gt;

&lt;p&gt;If you've exported from Mailchimp recently: do your file names start that way, and does your subscribed file start with a BOM? I'd like to know if there are variations we haven't seen.&lt;/p&gt;

</description>
      <category>email</category>
      <category>webdev</category>
      <category>node</category>
      <category>javascript</category>
    </item>
    <item>
      <title>We studied how two email companies get their Google traffic. They do it in opposite ways.</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Sat, 21 Nov 2026 14:21:00 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/we-studied-how-two-email-companies-get-their-google-traffic-they-do-it-in-opposite-ways-4554</link>
      <guid>https://dev.to/lalitkumarjangid/we-studied-how-two-email-companies-get-their-google-traffic-they-do-it-in-opposite-ways-4554</guid>
      <description>&lt;p&gt;We build an email platform, and for most of this year almost nobody found us through Google. So we did what every small team does eventually: we stopped guessing and looked at how two companies in our space actually get their search traffic.&lt;/p&gt;

&lt;p&gt;We picked two. We are not going to name them, because the point here is the pattern and not the companies. Both are well known among developers and founders, both are a few years old, and both sell something close to what we sell. We expected to find two versions of the same playbook.&lt;/p&gt;

&lt;p&gt;We found two completely different ones. This is what the data showed, what we think it means for a small company, and what we built the same day.&lt;/p&gt;

&lt;p&gt;A note on the numbers first. Everything below comes from a third-party SEO data tool (OpenSEO), for searches in the United States, pulled on November 13, 2026. These are estimates modelled from rankings and search volumes. They are not either company's real analytics, and the true figures will differ. The shapes are what matter, not the decimals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Company one: almost all of it is the name
&lt;/h2&gt;

&lt;p&gt;The first company's estimated organic traffic is about 20,000 visits a month, from roughly 1,000 ranking keywords.&lt;/p&gt;

&lt;p&gt;Then we split the top 100 keywords by traffic into two piles: searches that contain the company's name, and searches that do not.&lt;/p&gt;

&lt;p&gt;About 98% of the traffic was in the first pile.&lt;/p&gt;

&lt;p&gt;The company's own name, typed on its own, accounts for most of it. Around it sit the name plus "email", plus "api", plus "pricing", plus "login", and dozens like them. People already know the product and are typing its name to get there.&lt;/p&gt;

&lt;p&gt;The pattern is clear: Google is not introducing many strangers to this company. The strangers arrive already knowing the name.&lt;/p&gt;

&lt;p&gt;So where do they learn it? The link data answers that. Of the 50 strongest sites linking to them, about a quarter were package registries and plugin listings: places where a developer installs something that depends on the product. Others were open-source starter kits, framework documentation, and forum threads where someone asks "what do you use for email?" and somebody answers.&lt;/p&gt;

&lt;p&gt;In other words, the product is distributed through other people's code. Each install is a small advertisement, and the search traffic is the result of that, not the cause.&lt;/p&gt;

&lt;p&gt;The non-brand part exists, but it is small. They rank in the top 20 for about 250 searches that do not include their name. Around 40% of those belong to their documentation: pages like "send email with [framework]", and help articles about one specific problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Company two: almost none of it is the name
&lt;/h2&gt;

&lt;p&gt;The second company has far less estimated traffic, around 1,800 visits a month. But the split is the reverse. Only about a third of its top-100 traffic contains the brand name. The rest comes from people who were searching for something else entirely.&lt;/p&gt;

&lt;p&gt;And it ranks in the top 20 for about 435 non-brand searches, which is more than the larger company manages.&lt;/p&gt;

&lt;p&gt;When we grouped those rankings by section of the site, two sections held 86% of them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A glossary&lt;/strong&gt; held about half. Plain definitions of email terms: what a reply-to address is, what the body of an email is, what "recipient" means.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An examples library&lt;/strong&gt; held about a third. Pages like "waitlist email examples" and "account verification email examples", each showing a few real emails with a short note on why they work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The site map told us how small this effort is: 78 glossary pages and 16 example pages. That is the engine.&lt;/p&gt;

&lt;p&gt;The example pages are the interesting part. Their best one ranks third for "waitlist email", a search with thousands of monthly queries, and the page is about 600 words with a handful of images. The glossary pages are around 1,000 words each, built on one template. Google's own snippets date the glossary to July 2026, so the section was ranking within about four months.&lt;/p&gt;

&lt;p&gt;The keywords behind these pages have something in common. Their difficulty scores are close to zero. Nobody had bothered to write a good page for "notification email examples" or "payment confirmation email", because each one looks too small to matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two playbooks, side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Company one&lt;/th&gt;
&lt;th&gt;Company two&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Estimated monthly organic visits&lt;/td&gt;
&lt;td&gt;about 20,000&lt;/td&gt;
&lt;td&gt;about 1,800&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Share of top-100 traffic with the brand name&lt;/td&gt;
&lt;td&gt;about 98%&lt;/td&gt;
&lt;td&gt;about 35%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Non-brand searches ranking in the top 20&lt;/td&gt;
&lt;td&gt;about 250&lt;/td&gt;
&lt;td&gt;about 435&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where non-brand rankings come from&lt;/td&gt;
&lt;td&gt;Docs (about 40%)&lt;/td&gt;
&lt;td&gt;Glossary and examples (86%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sites linking to them&lt;/td&gt;
&lt;td&gt;about 15,000&lt;/td&gt;
&lt;td&gt;about 1,800&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One company has ten times the traffic. The other has almost twice the reach among people who have never heard of it.&lt;/p&gt;

&lt;p&gt;Neither is wrong. They are answers to different questions. The first is what search looks like when your product spreads through developers' own tools and the name does the work. The second is what it looks like when you patiently answer small questions that your future customers type into Google.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a small company can and cannot copy
&lt;/h2&gt;

&lt;p&gt;This was the useful part for us, and it is the part most "SEO teardown" posts skip.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You cannot copy a name.&lt;/strong&gt; If thousands of people search for your company each month, you will get that traffic. If they do not, no page will create it. A brand is the result of a product people talk about, and it takes years.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You cannot copy fifteen thousand linking sites.&lt;/strong&gt; Several of the larger company's pages rank near the top with very little text, because the domain behind them is strong. The same page on a young domain would sit on page eight. We know, because that is roughly where ours sat.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You can copy distribution, in a small way.&lt;/strong&gt; Getting your product into one open-source starter kit, one framework's integration list, or one directory that developers actually browse is within reach of a two-person team. It is slow, and each one is a real link from a place your customers already are.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You can copy the small pages.&lt;/strong&gt; This is the big one. A page of five good example emails does not need authority, funding or a famous name. It needs someone to sit down and write five good example emails. The reason these keywords are easy is that they are boring to write for, and that is an advantage for whoever is willing to do it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You should not copy the scale blindly.&lt;/strong&gt; Seventy-eight glossary pages on an established site is a library. Seventy-eight thin definitions on a new site looks like an attempt to game search, and Google treats it that way. We also noticed that the highest-volume glossary terms bring the least useful visitors. Someone searching the meaning of "recipient" is doing their homework, not choosing an email platform.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we did the same day
&lt;/h2&gt;

&lt;p&gt;We took the second playbook, cut it down, and built it.&lt;/p&gt;

&lt;p&gt;We wrote nine example pages for the emails every product sends: waitlist, verification, welcome, notification, payment confirmation and a few more. Each has a few example emails, subject lines, a checklist and a template with variables. We wrote four glossary pages, only for terms a person meets while setting up email sending. And we wrote one help article about a specific problem developers run into with Sign in with Apple.&lt;/p&gt;

&lt;p&gt;Two decisions we made along the way:&lt;/p&gt;

&lt;p&gt;We merged pages that would have competed with each other. Our first list had twelve example pages. "Payment confirmation" and "invoice payment confirmation" are the same search with different words, so they became one page. That left nine.&lt;/p&gt;

&lt;p&gt;We wrote our own examples and said so on the page. The library we studied shows real emails from well-known companies. We did not want to publish other companies' emails, so ours are written for fictional products and labelled that way. It is less impressive at a glance. It is also something we can stand behind.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we do not know yet
&lt;/h2&gt;

&lt;p&gt;We do not know if this will work.&lt;/p&gt;

&lt;p&gt;Our site has 19 other sites linking to it. The company whose approach we borrowed has about 1,800. "Difficulty zero" means the pages ranking today have few links, so a small site has a chance. It is not a promise, and anyone who tells you a position in advance is selling something.&lt;/p&gt;

&lt;p&gt;Here is what we will be watching, in order: whether Google indexes the pages at all, whether they earn impressions for the searches we wrote them for, and whether anyone who arrives that way signs up. The third one is the only one that matters, and it will take months to know.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want to do this for your own company
&lt;/h2&gt;

&lt;p&gt;You do not need an expensive tool. Here is the short version of what we did.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pick two competitors, not ten.&lt;/strong&gt; Choose one that is bigger than you and one that is closer to your size.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Split their keywords into brand and non-brand.&lt;/strong&gt; If nearly everything contains their name, their search traffic is a mirror of their popularity, and the lesson is about distribution, not pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Group the non-brand rankings by section of the site.&lt;/strong&gt; You are looking for the two or three page types that do most of the work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open the best page in each section.&lt;/strong&gt; Count the words. Note whether it was written by hand or stamped from a template. Small, plain pages that rank well are your opening.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look at who links to them and to what.&lt;/strong&gt; Links to the home page from registries and directories mean distribution. Links to one article mean that article is worth studying.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write down what will not transfer.&lt;/strong&gt; Their name, their age, their links. Be honest about it, or you will copy the part that only works for them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build the smallest version that could work.&lt;/strong&gt; Ten good pages, not a hundred thin ones.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The most useful thing we learned was not a tactic. It was that the company with ten times the traffic and the company with twice the reach were not doing the same thing at different sizes. They were doing different things. Before you copy a competitor, find out which game they are playing, and whether it is one you can enter.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;We build Cresca, an email platform for marketing campaigns and transactional email. The example pages mentioned above are at &lt;a href="https://www.cresca.xyz/examples" rel="noopener noreferrer"&gt;cresca.xyz/examples&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>startup</category>
      <category>marketing</category>
      <category>saas</category>
    </item>
    <item>
      <title>Export Mailchimp Data with the API: A Node.js Script</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Fri, 20 Nov 2026 04:12:19 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/export-mailchimp-data-with-the-api-a-nodejs-script-1fhc</link>
      <guid>https://dev.to/lalitkumarjangid/export-mailchimp-data-with-the-api-a-nodejs-script-1fhc</guid>
      <description>&lt;p&gt;&lt;strong&gt;Export your Mailchimp data with the API&lt;/strong&gt; and you get something the dashboard export doesn't give you: a repeatable, scriptable backup you can run whenever you like and feed straight into another system. With Bending Spoons agreeing on November 19, 2026 to buy Mailchimp from Intuit (closing is expected in early 2027), plenty of teams want a complete copy of their data on their own disk. Nothing has changed yet. This is just good practice.&lt;/p&gt;

&lt;p&gt;This guide walks through a single Node.js script that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;lists every audience in the account,&lt;/li&gt;
&lt;li&gt;exports every contact in each audience, by status (subscribed, unsubscribed, cleaned and the rest), with merge fields and tags,&lt;/li&gt;
&lt;li&gt;saves the HTML of every sent campaign, and&lt;/li&gt;
&lt;li&gt;optionally loads your subscribed contacts into &lt;a href="https://www.cresca.xyz" rel="noopener noreferrer"&gt;Cresca&lt;/a&gt;, an AI email marketing and transactional email platform, through its contacts API.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Mailchimp API details below come from Mailchimp's developer documentation, checked on November 20, 2026. For the business side of the deal, see &lt;a href="https://www.cresca.xyz/blog/mailchimp-bending-spoons-acquisition" rel="noopener noreferrer"&gt;Bending Spoons acquires Mailchimp: what it means for you&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Mailchimp API export covers (and what it doesn't)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Data&lt;/th&gt;
&lt;th&gt;API&lt;/th&gt;
&lt;th&gt;Dashboard export&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Contacts with status, merge fields and tags&lt;/td&gt;
&lt;td&gt;Yes: &lt;code&gt;GET /lists/{list_id}/members&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Yes, one CSV per status&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Merge field definitions&lt;/td&gt;
&lt;td&gt;Yes: &lt;code&gt;GET /lists/{list_id}/merge-fields&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Column headers only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sent campaign HTML&lt;/td&gt;
&lt;td&gt;Yes: &lt;code&gt;GET /campaigns/{campaign_id}/content&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Yes, in the account data export&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Template HTML&lt;/td&gt;
&lt;td&gt;No documented endpoint returns full template HTML&lt;/td&gt;
&lt;td&gt;Custom-coded templates only, or the account data export&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open and click history&lt;/td&gt;
&lt;td&gt;Reports endpoints&lt;/td&gt;
&lt;td&gt;Campaign report exports&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For templates, use the dashboard: &lt;strong&gt;Account&lt;/strong&gt;, &lt;strong&gt;Settings&lt;/strong&gt;, &lt;strong&gt;Manage my data&lt;/strong&gt;, &lt;strong&gt;Export Data&lt;/strong&gt; puts the HTML of your templates in a Templates folder. You can run that export once every 24 hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Get a Mailchimp API key and your server prefix
&lt;/h2&gt;

&lt;p&gt;In Mailchimp, open your profile, then &lt;strong&gt;Extras&lt;/strong&gt; and &lt;strong&gt;API keys&lt;/strong&gt;, and create a key. A Mailchimp API key has full access to the account and doesn't expire, so treat it like a password, keep it in an environment variable and delete it when you're done.&lt;/p&gt;

&lt;p&gt;The key ends in a dash and your data centre, for example &lt;code&gt;-us6&lt;/code&gt;. That suffix is the server prefix in the API URL: &lt;code&gt;https://us6.api.mailchimp.com/3.0&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Authentication is HTTP Basic, with any string as the username and the API key as the password. Bearer tokens work too.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MAILCHIMP_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"your-key-us6"&lt;/span&gt;
&lt;span class="c"&gt;# Optional, for step 5:&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;CRESCA_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"cr_live_..."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: A small Mailchimp API client with pagination
&lt;/h2&gt;

&lt;p&gt;Mailchimp's list endpoints return at most 1,000 items per call. You page through them with &lt;code&gt;count&lt;/code&gt; and &lt;code&gt;offset&lt;/code&gt;, and each response includes &lt;code&gt;total_items&lt;/code&gt;. The API allows 10 simultaneous connections per user and returns &lt;code&gt;429 TooManyRequests&lt;/code&gt; above that. This script makes one request at a time, so it stays well under the limit, and it retries on 429 just in case.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// export-mailchimp.mjs (Node.js 18 or later, no dependencies)&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;mkdir&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;writeFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;appendFile&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'node:fs/promises'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;MAILCHIMP_API_KEY&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="no"&gt;KEY&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="no"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'-'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Set MAILCHIMP_API_KEY (it ends in -usN)'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;SERVER&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'-'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                 &lt;span class="c1"&gt;// e.g. "us6"&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;BASE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`https://${SERVER}.api.mailchimp.com/3.0`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;AUTH&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Basic '&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`export:${KEY}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'base64'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;OUT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'./mailchimp-export'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sleep&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ms&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ms&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;mc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;BASE&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;searchParams&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;AUTH&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;429&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;continue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Mailchimp ${res.status} on ${path}: ${await res.text()}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Yields every item of a paginated collection, 1,000 at a time.&lt;/span&gt;
&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;offset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;offset&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;mc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;offset&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;yield&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;offset&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;total_items&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3: Export every contact, by status
&lt;/h2&gt;

&lt;p&gt;A full backup needs more than your subscribers. The &lt;code&gt;unsubscribed&lt;/code&gt; and &lt;code&gt;cleaned&lt;/code&gt; contacts are your record of who must not get marketing email again, so the script exports every status Mailchimp documents for this endpoint. Each audience gets a JSON Lines file with the complete member objects, so nothing is lost, plus a simple CSV of subscribed contacts for importing elsewhere.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;STATUSES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'subscribed'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'unsubscribed'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'cleaned'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'pending'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'transactional'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'archived'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;z0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;+/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'-'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/^-|-&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;csvCell&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`"${String(v ?? '').replace(/"/g, '""')}"`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;exportAudiences&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;mkdir&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${OUT}/audiences`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;recursive&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;subscribedByAudience&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;list&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/lists'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'lists'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;list&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;list&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;dir&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`${OUT}/audiences/${name}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;mkdir&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dir&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;recursive&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="c1"&gt;// Merge field definitions (FNAME, LNAME, and your custom fields)&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;fields&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`/lists/${list.id}/merge-fields`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'merge_fields'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;fields&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;writeFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${dir}/merge-fields.json`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fields&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;subscribed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="no"&gt;STATUSES&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`${dir}/${status}.jsonl`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;writeFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`/lists/${list.id}/members`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'members'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;appendFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s1"&gt;'\n'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'subscribed'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="n"&gt;subscribed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email_address&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;first_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;merge_fields&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;FNAME&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;last_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;merge_fields&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;LNAME&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tags&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'|'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${list.name}: ${n} ${status}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;header&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'email,first_name,last_name,tags'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;subscribed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;first_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;last_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;csvCell&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;','&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;writeFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${dir}/subscribed.csv`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'\n'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;subscribedByAudience&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;list&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;subscribed&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;subscribedByAudience&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On a very large audience (hundreds of thousands of contacts), consider Mailchimp's batch operations endpoint (&lt;code&gt;POST /batches&lt;/code&gt;) instead. A batched &lt;code&gt;GET&lt;/code&gt; without a &lt;code&gt;count&lt;/code&gt; pages through the whole collection on Mailchimp's side, and you download the results as a gzipped tar file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Save the HTML of every sent campaign
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;GET /campaigns&lt;/code&gt; lists campaigns, and &lt;code&gt;GET /campaigns/{campaign_id}/content&lt;/code&gt; returns the campaign's &lt;code&gt;html&lt;/code&gt; and &lt;code&gt;plain_text&lt;/code&gt;. That gives you a permanent archive of every email you've sent, including the drag-and-drop designs you can't export as templates.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;exportCampaigns&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;mkdir&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${OUT}/campaigns`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;recursive&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/campaigns'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'campaigns'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'sent'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;mc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`/campaigns/${c.id}/content`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;send_time&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s1"&gt;'unsent'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`${OUT}/campaigns/${date}-${slug(c.settings?.subject_line || c.id)}-${c.id}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;writeFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${base}.html`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;plain_text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;writeFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${base}.txt`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;plain_text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Saved ${n} sent campaigns`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 5: Load your subscribers into Cresca (optional)
&lt;/h2&gt;

&lt;p&gt;If you want to try a different tool while your Mailchimp account keeps running, the same script can load your subscribed contacts into Cresca. Cresca's &lt;code&gt;POST /contacts&lt;/code&gt; endpoint takes up to 1,000 contacts per request, creates the list if it doesn't exist, and never duplicates a contact. Imports are limited to 120 requests per 15 minutes, which is up to 120,000 contacts.&lt;/p&gt;

&lt;p&gt;Only subscribed contacts are sent. Unsubscribed and cleaned addresses stay in your backup, where they belong.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;CRESCA&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'https://api.cresca.xyz/api/v1'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;importToCresca&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;listName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;contacts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;contacts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;chunk&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;contacts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;first_name&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;first_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;first_name&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;last_name&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;last_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;last_name&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${CRESCA}/contacts`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'POST'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${process.env.CRESCA_API_KEY}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'Content-Type'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'application/json'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;list_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;listName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;contacts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;chunk&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Cresca ${res.status}: ${await res.text()}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;summary&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${listName}: +${summary.created} new, ${summary.updated} updated, ${summary.rejected} rejected`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Run everything&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;audiences&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;exportAudiences&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;exportCampaigns&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;CRESCA_API_KEY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;contacts&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;audiences&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;importToCresca&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${name} (from Mailchimp)`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;contacts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Done. Files are in ${OUT}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node export-mailchimp.mjs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You end up with a folder like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mailchimp-export/
  audiences/
    newsletter/
      merge-fields.json
      subscribed.jsonl
      unsubscribed.jsonl
      cleaned.jsonl
      pending.jsonl
      transactional.jsonl
      archived.jsonl
      subscribed.csv
  campaigns/
    2026-11-14-black-friday-early-access-abc123.html
    2026-11-14-black-friday-early-access-abc123.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To get a Cresca API key, &lt;a href="https://app.cresca.xyz/signup" rel="noopener noreferrer"&gt;create a free account&lt;/a&gt; (30 days, 250 contacts, 1,000 emails, no credit card) and create a key with full access. The &lt;a href="https://www.cresca.xyz/docs/api-reference/add-contacts" rel="noopener noreferrer"&gt;add contacts API reference&lt;/a&gt; has the full request and response format. Cresca's contacts API stores email, first name and last name. Your other Mailchimp merge fields stay in the JSON backup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Send your first campaign from Cresca
&lt;/h2&gt;

&lt;p&gt;Once the import finishes, your Mailchimp audience is waiting in Cresca. Here's how to send to it, from sign-up to report:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Verify your sending domain
&lt;/h3&gt;

&lt;p&gt;Open &lt;strong&gt;Sending Domains&lt;/strong&gt;, add your domain and add the DNS records Cresca shows (ownership, DKIM and MAIL FROM/SPF), each with a copy button. When the domain shows as Verified, add your sender address.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Find your imported list
&lt;/h3&gt;

&lt;p&gt;Open &lt;strong&gt;Contacts&lt;/strong&gt;, then &lt;strong&gt;Contact Lists&lt;/strong&gt;. The script named each list after its Mailchimp audience, with "(from Mailchimp)" at the end.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbzidfbwuaksq04jf99fz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbzidfbwuaksq04jf99fz.webp" alt="Contact Lists in Cresca, with a card for each list showing its contact count" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Contact Lists in Cresca (sample data).&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Describe the email to Cresca AI
&lt;/h3&gt;

&lt;p&gt;Open &lt;strong&gt;Templates&lt;/strong&gt; and type a brief in the &lt;strong&gt;Message Cresca AI&lt;/strong&gt; box, for example "Welcome email for new subscribers with the code HELLO10 for 10% off". The AI agent designs the whole email in your brand, and you can refine it in the same conversation or in the editor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpypqtlzj53e6tuuns642.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpypqtlzj53e6tuuns642.webp" alt="Cresca's Email studio turning a one-line brief into a complete, on-brand email" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Cresca AI designing a welcome email from one brief (sample brand).&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Create the campaign
&lt;/h3&gt;

&lt;p&gt;In &lt;strong&gt;Campaigns&lt;/strong&gt;, choose &lt;strong&gt;New Campaign&lt;/strong&gt;. Pick your sender, the template and the imported list, then send now or schedule it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcph1b2a63r1nyjh317d1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcph1b2a63r1nyjh317d1.webp" alt="The Campaigns page in Cresca with a new campaign being scheduled" width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Scheduling a campaign in Cresca (sample data).&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Check the results
&lt;/h3&gt;

&lt;p&gt;on the dashboard or in &lt;strong&gt;Delivery logs&lt;/strong&gt;: deliveries, bounces, complaints and unsubscribes. Hard bounces and complaints are suppressed automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do with the backup
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Store it somewhere safe and private.&lt;/strong&gt; It contains personal data, so treat it under the same privacy rules as your live list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-run it before any big change&lt;/strong&gt;, such as a plan change, a migration or the deal closing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the unsubscribed and cleaned files&lt;/strong&gt; for as long as you keep sending email. They're how you avoid emailing people who opted out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delete the API key&lt;/strong&gt; when you're finished, because Mailchimp keys never expire on their own.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why developers like Cresca
&lt;/h2&gt;

&lt;p&gt;If your product sends both marketing and transactional email, Cresca puts them in one account, on your own domain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a REST API for transactional email at &lt;code&gt;https://api.cresca.xyz/api/v1&lt;/code&gt;, included on every plan, with templates, batches of up to 100 emails, scheduled sends and idempotency keys;&lt;/li&gt;
&lt;li&gt;an AI agent that designs your marketing campaigns from a one-line brief, so nobody on the team has to hand-code newsletter HTML;&lt;/li&gt;
&lt;li&gt;guided SPF and DKIM setup, one-click unsubscribe and automatic bounce and complaint suppression.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Email automation workflows are launching soon in Cresca. Campaigns, the AI agent and the transactional API are available today. Start with the &lt;a href="https://www.cresca.xyz/docs/quickstart" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt;, or &lt;a href="https://app.cresca.xyz/signup" rel="noopener noreferrer"&gt;try Cresca free for 30 days&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I export Mailchimp contacts with the API?
&lt;/h3&gt;

&lt;p&gt;Yes. &lt;code&gt;GET /lists/{list_id}/members&lt;/code&gt; returns up to 1,000 contacts per call with &lt;code&gt;count&lt;/code&gt; and &lt;code&gt;offset&lt;/code&gt; for paging, and a &lt;code&gt;status&lt;/code&gt; filter for subscribed, unsubscribed, cleaned, pending, transactional and archived contacts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does the Mailchimp API export templates?
&lt;/h3&gt;

&lt;p&gt;No documented endpoint returns a template's full HTML. &lt;code&gt;GET /templates/{template_id}/default-content&lt;/code&gt; returns only the editable sections. Use the account data export, which includes template HTML files, or export custom-coded templates from the dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  What are the Mailchimp API rate limits?
&lt;/h3&gt;

&lt;p&gt;Mailchimp allows 10 simultaneous connections per user and times out calls after 120 seconds. Going over the connection limit returns a 429 error.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is my Mailchimp data changing because of the Bending Spoons acquisition?
&lt;/h3&gt;

&lt;p&gt;No change has been announced. The deal is expected to close in early 2027, and neither company has said anything about plans, prices or data. A backup simply means you have a complete copy whatever happens.&lt;/p&gt;

</description>
      <category>mailchimp</category>
      <category>node</category>
      <category>api</category>
      <category>email</category>
    </item>
    <item>
      <title>The five emails every waitlist needs (with copy you can use)</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Thu, 19 Nov 2026 03:01:46 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/the-five-emails-every-waitlist-needs-with-copy-you-can-use-2ohk</link>
      <guid>https://dev.to/lalitkumarjangid/the-five-emails-every-waitlist-needs-with-copy-you-can-use-2ohk</guid>
      <description>&lt;p&gt;&lt;em&gt;Most waitlists send one confirmation and then go silent until launch day. Here is the full sequence, with the words.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A waitlist is a promise: sign up now and we will tell you when it is ready. Most products keep the first half of that promise and forget the second. People get a one-line confirmation, hear nothing for six weeks, and then receive a launch email from a company they no longer remember.&lt;/p&gt;

&lt;p&gt;By then the hard part is already lost. The person was interested on the day they signed up. Every week of silence after that makes the invite a little more likely to be ignored, or marked as spam.&lt;/p&gt;

&lt;p&gt;A waitlist needs five emails. None of them is long. Below is what each one is for and the text to start from.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The confirmation
&lt;/h2&gt;

&lt;p&gt;Send it within seconds of the signup, while the person is still on your page.&lt;/p&gt;

&lt;p&gt;It has three jobs: say what they joined, give a rough date, and say what happens next.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Subject:&lt;/strong&gt; You're on the Acme waitlist&lt;/p&gt;

&lt;p&gt;Hi Ana,&lt;/p&gt;

&lt;p&gt;You're on the waitlist for Acme, the invoicing app for freelancers. Thanks for signing up.&lt;/p&gt;

&lt;p&gt;We're letting people in a few at a time so that we can fix problems as they come up. We expect to send your invite in the next three weeks.&lt;/p&gt;

&lt;p&gt;You don't need to do anything now. We'll email you the day your account is ready.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The line people leave out is the date. A waitlist with no date reads like a list nobody is working on. "In the next three weeks" is enough. If the date slips, say so in email 3.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The position (only if it is real)
&lt;/h2&gt;

&lt;p&gt;Some products tell people where they are in line.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Subject:&lt;/strong&gt; You're number 412 on the Kettle waitlist&lt;/p&gt;

&lt;p&gt;Hi Sam,&lt;/p&gt;

&lt;p&gt;You're number 412 in line for Kettle. We invite about 150 people each week.&lt;/p&gt;

&lt;p&gt;Want to move up? Share your link. Each friend who joins moves you 10 places forward.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A number makes the wait concrete, and the weekly figure lets the reader work out their own date. It also turns the wait into something they can act on.&lt;/p&gt;

&lt;p&gt;Use this one only if the number is true and you will keep it up to date. A position that never changes, or one that was invented to look impressive, does more harm than no number at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The progress update
&lt;/h2&gt;

&lt;p&gt;If the wait is longer than two or three weeks, send a short update about once a month.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Subject:&lt;/strong&gt; What we shipped this month (and where your invite is)&lt;/p&gt;

&lt;p&gt;Hi Leo,&lt;/p&gt;

&lt;p&gt;A short update while you wait. This month we finished calendar sync and the mobile app, the two things early testers asked for most.&lt;/p&gt;

&lt;p&gt;We've invited the first 800 people. You're in the next group, which opens on December 2.&lt;/p&gt;

&lt;p&gt;If something has changed and you no longer need Brightside, you can leave the list with the link below.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This email does two things at once. It shows the product is moving, and it keeps your sender name familiar, so that the invite does not arrive from a stranger.&lt;/p&gt;

&lt;p&gt;The last line matters too. Letting people leave keeps your list honest, and a smaller list of people who still care will do more for your launch than a large one that has forgotten you.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The invite
&lt;/h2&gt;

&lt;p&gt;One job, one button.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Subject:&lt;/strong&gt; Your Acme invite is here&lt;/p&gt;

&lt;p&gt;Hi Ana,&lt;/p&gt;

&lt;p&gt;Your spot is ready. Use the button below to create your Acme account. It takes about two minutes.&lt;/p&gt;

&lt;p&gt;The link is yours alone and works for 7 days. After that, the spot goes to the next person in line.&lt;/p&gt;

&lt;p&gt;[Create my account]&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Resist the urge to add the product tour, the pricing table and a note from the founder. The reader has waited for this email and needs to do exactly one thing. The 7-day limit is a real reason to act now, which is different from an invented one.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The reminder
&lt;/h2&gt;

&lt;p&gt;Many invites are missed, not refused. They arrive on a busy day and sink.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Subject:&lt;/strong&gt; Your Acme invite expires on Friday&lt;/p&gt;

&lt;p&gt;Hi Ana,&lt;/p&gt;

&lt;p&gt;We sent your Acme invite on Monday and it has not been used yet. It expires this Friday.&lt;/p&gt;

&lt;p&gt;If now is not a good time, reply to this email and we'll hold your place for later.&lt;/p&gt;

&lt;p&gt;[Create my account]&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Send one reminder, a few days after the invite, with the date. The offer to reply gives people a way out other than silence, and the replies will tell you why some people are not ready.&lt;/p&gt;

&lt;h2&gt;
  
  
  Subject lines that work for waitlist emails
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;You're on the waitlist&lt;/li&gt;
&lt;li&gt;You're in line for [Product]. Here's what happens next&lt;/li&gt;
&lt;li&gt;You're number 412 on the [Product] waitlist&lt;/li&gt;
&lt;li&gt;An update on your [Product] invite&lt;/li&gt;
&lt;li&gt;Your [Product] invite is here&lt;/li&gt;
&lt;li&gt;Your invite expires on Friday&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What they have in common: each one says what the email is. None of them is clever. A waitlist email is one the reader has asked for, so the subject line only has to be recognisable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two practical points
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The first email is transactional. The rest are marketing.&lt;/strong&gt; The confirmation answers something the person just did, so it is treated as a transactional email. Updates and launch announcements promote the product, so they need an unsubscribe link and should only go to people who agreed to hear from you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Send from a real address on your own domain.&lt;/strong&gt; People reply to waitlist emails: they ask when, they ask how much, they tell you what they hope it does. Those replies are useful research before launch, and a no-reply address throws them away.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Confirm at once, with a rough date.&lt;/li&gt;
&lt;li&gt;Give a position only if it is real.&lt;/li&gt;
&lt;li&gt;Update monthly while people wait.&lt;/li&gt;
&lt;li&gt;Send an invite with one button and a real deadline.&lt;/li&gt;
&lt;li&gt;Remind once.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Five short emails, and nobody on your list has to wonder whether you are still building.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We build Cresca, an email platform for marketing campaigns and transactional email. The examples above, plus a template with variables you can copy, are on our &lt;a href="https://www.cresca.xyz/examples/waitlist-email-examples" rel="noopener noreferrer"&gt;waitlist email examples&lt;/a&gt; page.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>email</category>
      <category>startup</category>
      <category>saas</category>
      <category>marketing</category>
    </item>
    <item>
      <title>Your Newsletter Is Getting Ignored. Here Are 6 Emails People Actually Reply To</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Thu, 19 Nov 2026 03:01:02 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/your-newsletter-is-getting-ignored-here-are-6-emails-people-actually-reply-to-ghi</link>
      <guid>https://dev.to/lalitkumarjangid/your-newsletter-is-getting-ignored-here-are-6-emails-people-actually-reply-to-ghi</guid>
      <description>&lt;p&gt;&lt;em&gt;Most marketing emails ask for a click. The ones that build a business ask for a reply. Here are six emails that start real conversations with customers, with copy you can adapt today.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Look at the last ten emails you sent your list. Count the ones that asked a real question.&lt;/p&gt;

&lt;p&gt;For most businesses, the answer is zero. Every email is a broadcast: a sale, an update, a "new on the blog". Readers scan it, maybe click, and move on. Nobody answers, because nothing in the email invited an answer.&lt;/p&gt;

&lt;p&gt;That's a missed opportunity in three ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Replies are the best customer research you can get.&lt;/strong&gt; One honest answer to "what almost stopped you from buying?" is worth more than a week of guessing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replies tell Gmail you're someone people talk to.&lt;/strong&gt; Mailbox providers watch how people interact with your email, and a conversation is a strong signal that your email is wanted. Over time that helps your messages land where they're seen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replies turn a list into relationships.&lt;/strong&gt; People buy again from businesses they've talked to.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here are six emails designed to get a reply, when to send each one, and copy you can adapt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before the emails: three rules for getting replies
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Send from a person, with a real reply address.&lt;/strong&gt; &lt;code&gt;Maya from Acme &amp;lt;maya@acme.com&amp;gt;&lt;/code&gt; invites a reply. &lt;code&gt;Acme Newsletter &amp;lt;noreply@acme.com&amp;gt;&lt;/code&gt; tells people not to bother. If nobody can answer replies, fix that first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Ask one question, at the end, that's easy to answer.&lt;/strong&gt; "What do you think?" is hard. "Which of these two should we make next, A or B?" takes five seconds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Keep it short and mostly text.&lt;/strong&gt; A reply email that looks like a landing page won't get replies. Write it like you'd write to one customer.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The "why did you sign up?" welcome email
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;When:&lt;/strong&gt; right after someone joins your list.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it works:&lt;/strong&gt; they've just shown interest, and the question is about them, not you.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Subject: Quick question before you go&lt;/p&gt;

&lt;p&gt;Hi {{first name}},&lt;/p&gt;

&lt;p&gt;Thanks for signing up. I'm Maya, and I run Acme.&lt;/p&gt;

&lt;p&gt;One question, if you have ten seconds: &lt;strong&gt;what made you sign up today?&lt;/strong&gt; Just hit reply. I read every answer, and it genuinely shapes what we send.&lt;/p&gt;

&lt;p&gt;Maya&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;What you'll learn:&lt;/strong&gt; the words your customers use to describe their problem. Use them in your website copy and ads.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The "what almost stopped you?" email after a first purchase
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;When:&lt;/strong&gt; a few days after someone's first order or subscription.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it works:&lt;/strong&gt; they've crossed the line from browser to customer and still remember what nearly held them back.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Subject: Can I ask you something?&lt;/p&gt;

&lt;p&gt;Hi {{first name}},&lt;/p&gt;

&lt;p&gt;Thanks for your first order. I hope it arrived safely.&lt;/p&gt;

&lt;p&gt;I'm trying to make it easier for people like you to decide. &lt;strong&gt;Was there anything that almost stopped you from buying?&lt;/strong&gt; Price, shipping, not being sure it would work? One line is plenty.&lt;/p&gt;

&lt;p&gt;Maya&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;What you'll learn:&lt;/strong&gt; your real objections, in order of how often they come up. Answer the top one on your product page and you'll usually see it in your sales.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The "help us choose" email
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;When:&lt;/strong&gt; any time you're deciding what to make, write or stock next.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it works:&lt;/strong&gt; people like being asked, and choosing between two options takes no effort.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Subject: Which one should we make next?&lt;/p&gt;

&lt;p&gt;Hi {{first name}},&lt;/p&gt;

&lt;p&gt;We're choosing our next product and can't decide between two:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A.&lt;/strong&gt; A travel-size version of our bestseller&lt;br&gt;
&lt;strong&gt;B.&lt;/strong&gt; A gift set with three of our most-loved items&lt;/p&gt;

&lt;p&gt;Just reply with A or B. If you have a reason, I'd love to hear it too.&lt;/p&gt;

&lt;p&gt;Maya&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; tell people the result in a later email: "You picked A, and it's coming in March." Readers who see their answer mattered reply again.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The honest "we got it wrong" email
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;When:&lt;/strong&gt; after a mistake: a late shipment, a bug, a confusing change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it works:&lt;/strong&gt; honesty is rare in marketing email, and people respond to it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Subject: We got this one wrong&lt;/p&gt;

&lt;p&gt;Hi {{first name}},&lt;/p&gt;

&lt;p&gt;Last week's orders shipped three days late. That's on us: we underestimated how many orders the sale would bring.&lt;/p&gt;

&lt;p&gt;Here's what we've changed so it doesn't happen again: [one or two specific fixes].&lt;/p&gt;

&lt;p&gt;If your order was affected and there's anything we can do, reply to this email and I'll sort it personally.&lt;/p&gt;

&lt;p&gt;Maya&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;What you'll learn:&lt;/strong&gt; which customers were affected and how much it mattered to them, and often, a surprising amount of goodwill.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The "how's it going?" check-in
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;When:&lt;/strong&gt; two to four weeks after someone starts using your product or service.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it works:&lt;/strong&gt; it's timed to when people either get value or give up, and it catches the second group before they leave.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Subject: How's it going so far?&lt;/p&gt;

&lt;p&gt;Hi {{first name}},&lt;/p&gt;

&lt;p&gt;You've been using Acme for a few weeks now. &lt;strong&gt;On a scale of 1 to 10, how useful has it been?&lt;/strong&gt; Just reply with a number.&lt;/p&gt;

&lt;p&gt;If it's below 7, tell me what's missing. I'll read it and, if I can, I'll fix it.&lt;/p&gt;

&lt;p&gt;Maya&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;What you'll learn:&lt;/strong&gt; who's at risk of leaving, while there's still time to help.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. The win-back email that asks instead of begging
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;When:&lt;/strong&gt; for people who haven't opened or bought in a long time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it works:&lt;/strong&gt; "We miss you!" plus a discount is the email everyone ignores. A genuine question is rarer.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Subject: Should I stop emailing you?&lt;/p&gt;

&lt;p&gt;Hi {{first name}},&lt;/p&gt;

&lt;p&gt;I noticed you haven't opened our emails in a while, and I don't want to clutter your inbox.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Would you like to keep hearing from us?&lt;/strong&gt; Reply "yes" and you'll stay on the list. If not, no hard feelings: [unsubscribe here].&lt;/p&gt;

&lt;p&gt;Either way, thanks for having been part of this.&lt;/p&gt;

&lt;p&gt;Maya&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;What you'll learn:&lt;/strong&gt; who's still interested. People who don't answer and don't open after this are worth removing from your list, which also helps your deliverability.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do with the replies
&lt;/h2&gt;

&lt;p&gt;Replies are only worth asking for if you read them and act on them.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reply back to everyone, even briefly.&lt;/strong&gt; A two-line answer from a real person is the reason someone answers your next email.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep a simple log.&lt;/strong&gt; A spreadsheet with the date, the customer and what they said is enough. After 50 replies, patterns jump out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Close the loop in public.&lt;/strong&gt; "Several of you told us shipping was too slow, so we've added express delivery." It shows readers that replying changes things.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Writing these faster with AI
&lt;/h2&gt;

&lt;p&gt;You can draft all six of these with an AI tool in a few minutes, as long as you give it the facts and ask for the right tone. A good brief names the purpose, the question and the voice:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Short, personal email from Maya, the founder, to customers who bought for the first time three days ago. Thank them, then ask one question: was there anything that almost stopped them from buying? Plain text, no images, no offer."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you use Cresca (the email platform I'm building), that one-sentence brief is enough for its AI agent to write and lay out the email in your brand, from your own domain. Whatever tool you use, read the draft out loud before you send it. If it sounds like a company, rewrite it until it sounds like a person.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Most marketing emails ask for a click. Ask for a reply instead, a few times a year.&lt;/li&gt;
&lt;li&gt;Send from a person, ask one easy question at the end, and keep the email short.&lt;/li&gt;
&lt;li&gt;Six emails that work: why did you sign up, what almost stopped you, help us choose, we got it wrong, how's it going, and should I stop emailing you.&lt;/li&gt;
&lt;li&gt;Read every reply, answer it, and tell people what changed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Start with the welcome email. It's the one people are most likely to answer, and the answers will tell you what to write next.&lt;/p&gt;

</description>
      <category>email</category>
      <category>marketing</category>
      <category>writing</category>
      <category>startup</category>
    </item>
    <item>
      <title>Free Email Marketing Plans Compared: What Each One Actually Costs You When You Grow</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Thu, 19 Nov 2026 03:00:19 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/free-email-marketing-plans-compared-what-each-one-actually-costs-you-when-you-grow-1ij6</link>
      <guid>https://dev.to/lalitkumarjangid/free-email-marketing-plans-compared-what-each-one-actually-costs-you-when-you-grow-1ij6</guid>
      <description>&lt;p&gt;&lt;em&gt;Every email tool has a "free" plan. They're free in very different ways, and the differences only show up when your list grows. Here's what each free plan includes, what makes you start paying, and the costs nobody mentions on the pricing page.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;"Start free" is on the homepage of almost every email marketing tool. It's true. It's also the least useful number on the page.&lt;/p&gt;

&lt;p&gt;A free plan is a bet the company makes: that you'll build your list on its platform, get used to its editor, connect your signup forms, and then, when you hit a limit, upgrading will feel easier than moving. That's not a scam; it's how software is sold. But it means the important question isn't "is it free?" It's &lt;strong&gt;"what will it cost me when this works?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I looked at the free plans of seven email marketing tools on each company's own pricing page (checked between October 29 and November 5, 2026), and sorted out what actually triggers a bill. One disclosure up front: I'm building one of these tools, Cresca, so I've put it first and been plain about where its free plan is weaker.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three ways a "free" plan ends
&lt;/h2&gt;

&lt;p&gt;Every free plan has a fuse. It burns down in one of three ways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A contact limit.&lt;/strong&gt; You can store a certain number of subscribers. Your list grows past it and you pay, even if you send the same number of emails as before.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A sending limit.&lt;/strong&gt; You can send a certain number of emails a month (or a day). A busier month, a launch or a Black Friday campaign pushes you over.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A time limit.&lt;/strong&gt; The plan is free for a fixed number of days, then you choose a paid plan or stop.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There's also a quieter fourth one: &lt;strong&gt;the feature you need isn't on the free plan.&lt;/strong&gt; Automation, AI writing help, A/B testing, removing the provider's branding or sending app email (receipts and password resets) are often on paid tiers only. Many people start paying long before they hit a number, because they need one feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  The free plans, one by one
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Cresca: free for 30 days, with the AI on
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What you get:&lt;/strong&gt; 250 contacts, 1,000 emails and 20 AI-designed emails, with no credit card.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What ends it:&lt;/strong&gt; time. It's a 30-day allowance, not a permanent free plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What's included that others keep for paid plans:&lt;/strong&gt; the AI agent that designs a complete, on-brand email from a one-line brief, and a transactional email API for receipts and password resets, both on every plan, Free included.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What you pay next:&lt;/strong&gt; one flat monthly price per plan. $29 a month for 5,000 contacts and 7,500 emails, $49 for 25,000 contacts and 30,000 emails, $99 for 55,000 contacts and 65,000 emails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Honest trade-off:&lt;/strong&gt; if you want to stay free indefinitely on a small list, this isn't that plan. It's built for trying the product properly on a real campaign and paying a predictable price if it works.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Mailchimp: free for very small lists
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What you get:&lt;/strong&gt; up to 250 contacts and 500 emails a month, with no more than 250 in a day. One user and one audience.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What ends it:&lt;/strong&gt; contacts or sends. Mailchimp pauses sending when you go over a limit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What's not on the free plan:&lt;/strong&gt; generative AI features (Standard and Premium only), A/B testing (Essentials and up), and support after your first 30 days.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What you pay next:&lt;/strong&gt; paid plans are priced by contact count, and monthly sends are a multiple of your contacts: 10x on Essentials, 12x on Standard, 15x on Premium. Transactional email is an add-on for Standard and Premium, at $20 per block of 25,000 emails.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  MailerLite: free for small lists, with a generous send allowance
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What you get:&lt;/strong&gt; up to 250 subscribers and 2,500 emails a month.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What ends it:&lt;/strong&gt; subscribers, sends, or needing features from the paid plans. MailerLite's AI writing assistant, for example, starts on its paid Comfort plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What you pay next:&lt;/strong&gt; Comfort starts at $12 a month and is priced by subscriber count.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Kit (formerly ConvertKit): free for up to 10,000 subscribers
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What you get:&lt;/strong&gt; the biggest free contact limit of the group, up to 10,000 subscribers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What ends it:&lt;/strong&gt; growing past 10,000 subscribers, or needing a feature that's on Kit's paid plans.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What you pay next:&lt;/strong&gt; the Creator plan starts at $39 a month for 1,000 subscribers, and the price rises with your subscriber tier.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Klaviyo: free for small online stores
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What you get:&lt;/strong&gt; up to 250 active profiles and 500 email sends a month, plus $5 of SMS credit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What ends it:&lt;/strong&gt; profiles or sends. Klaviyo also limits free-plan support to the first 60 days.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What you pay next:&lt;/strong&gt; paid plans are priced by active profiles; the Email plan starts at $20 a month for 251 to 500 active profiles.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Brevo: free, with a daily limit
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What you get:&lt;/strong&gt; a free tier with a daily sending allowance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What ends it:&lt;/strong&gt; the daily cap. It suits steady, small sends better than one big campaign.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What you pay next:&lt;/strong&gt; paid tiers are sized by monthly email volume.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Constant Contact: a trial, not a free plan
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What you get:&lt;/strong&gt; a free trial with no credit card, backed by a 30-day money-back guarantee once you pay.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What ends it:&lt;/strong&gt; time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What you pay next:&lt;/strong&gt; plans start at $12 a month (or $10.20 a month billed annually) and rise with your contact count. Monthly sends are capped at 10, 12 or 24 times your contacts depending on the plan, with overage fees above that.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The costs nobody puts on the pricing page
&lt;/h2&gt;

&lt;p&gt;The plan price is only part of what you'll pay. These are the costs that catch people out:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Your list grows faster than you think.&lt;/strong&gt; A signup form on a website that gets steady traffic can pass 250 contacts in a few weeks. On contact-priced plans, your bill grows with your list whether or not you send more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. App email is often a second bill.&lt;/strong&gt; If you run a product, you also need password resets, receipts and verification emails. Some marketing tools don't send those at all, and some sell them as an add-on. Either way, that's a second tool or a second bill, plus a second set of DNS records to manage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Switching later costs time, not just money.&lt;/strong&gt; Moving means exporting your list, recreating your templates, reconnecting forms and warming up sending again. The longer you stay on a free plan, the more you've built that's hard to move. That's the real reason free plans exist.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Features you'll need in month three.&lt;/strong&gt; Make a list of what you'll want once things are working (automated welcome emails, AI help with writing, more than one team member, your own branding), and check which plan each one is on. That's your real starting price.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Introductory discounts end.&lt;/strong&gt; Half price for the first year is common. Look at the price after the offer, because that's the one you'll pay in year two.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to choose, in four questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. How big will your list be in six months?&lt;/strong&gt; Not today. If you're planning a launch or running ads, assume you'll pass 250 contacts quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Do you also need app email?&lt;/strong&gt; If your product sends receipts or password resets, a tool that does both in one account saves a second bill and keeps everything on one verified domain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Which feature would make you upgrade first?&lt;/strong&gt; If it's AI writing or design, check whether the free and entry plans include it or keep it for higher tiers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Do you want to stay free, or try properly and then pay a predictable price?&lt;/strong&gt; Both are reasonable. A permanent free plan suits a hobby newsletter. A time-limited trial with everything switched on tells you faster whether a tool is worth paying for.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"Free" ends in one of three ways: contacts, sends or time. Know which one applies before you build on it.&lt;/li&gt;
&lt;li&gt;The feature you need is often the real trigger for paying, not the limit.&lt;/li&gt;
&lt;li&gt;Count the second bill: app email, add-ons and the cost of switching later.&lt;/li&gt;
&lt;li&gt;Compare the price you'll pay when it works, not the price you pay while you're testing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you'd like to try the "time-limited, everything on" approach, Cresca's free plan gives you 30 days with the AI agent and the transactional email API included, no credit card required, at cresca.xyz. Whichever tool you choose, run the four questions above first. The cheapest plan today is rarely the cheapest one in a year.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Pricing facts were checked on each provider's own pricing page between October 29 and November 5, 2026. Plans change, so check the current page before you decide.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>email</category>
      <category>marketing</category>
      <category>startup</category>
      <category>saas</category>
    </item>
    <item>
      <title>Your email went to spam. The reason is written in the header.</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Wed, 18 Nov 2026 14:20:00 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/your-email-went-to-spam-the-reason-is-written-in-the-header-4aka</link>
      <guid>https://dev.to/lalitkumarjangid/your-email-went-to-spam-the-reason-is-written-in-the-header-4aka</guid>
      <description>&lt;p&gt;When an email lands in spam, most people start guessing. Was it the subject line? The word "free"? Too many images? A link?&lt;/p&gt;

&lt;p&gt;Sometimes it is one of those. But before you rewrite anything, there is a faster way to find out, and it does not involve guessing. Every email arrives with a header: a block of text, hidden by your mail app, that records who really sent it, which servers handled it and whether it passed the checks that mailbox providers run. The receiving server writes its verdict there in plain words.&lt;/p&gt;

&lt;p&gt;You can read it in two minutes once you know which five lines matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to open the header
&lt;/h2&gt;

&lt;p&gt;The header is hidden by default, because it is long and most people never need it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gmail:&lt;/strong&gt; open the email, click the three dots at the top right, then "Show original".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outlook on the web:&lt;/strong&gt; open the email, click the three dots, then View, then "View message details".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apple Mail:&lt;/strong&gt; open the email, then View, Message, "All Headers".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Send the email you are worried about to a personal Gmail account and open it there. Gmail's "Show original" page is the easiest to read, because it puts a summary table at the top with SPF, DKIM and DMARC and a pass or fail next to each.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five lines that matter
&lt;/h2&gt;

&lt;p&gt;A full header can run to sixty lines. You need five.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight email"&gt;&lt;code&gt;&lt;span class="nc"&gt;From&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Acme&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;hello&lt;/span&gt;@&lt;span class="n"&gt;acme&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nc"&gt;Return&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;bounces&lt;/span&gt;@&lt;span class="n"&gt;mail&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;acme&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;DKIM-Signature: v&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;rsa&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;acme&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;abc123&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="nc"&gt;Authentication&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Results&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;mx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;google&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
       &lt;span class="na"&gt;dkim&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;pass&lt;/span&gt; &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nd"&gt;@acme&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
       &lt;span class="na"&gt;spf&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;pass&lt;/span&gt; &lt;span class="n"&gt;smtp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mailfrom&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;mail&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;acme&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
       &lt;span class="na"&gt;dmarc&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;pass&lt;/span&gt; &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;from&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;acme&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;
&lt;span class="nc"&gt;Received&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;from&lt;/span&gt; &lt;span class="n"&gt;a48&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;93&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;smtp&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;net&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;From&lt;/strong&gt; is the sender your reader sees. It is also the easiest field to fake, which is why the other four exist.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Return-Path&lt;/strong&gt; is the address that receives bounce messages. Readers never see it. It is often on a different domain from the From address, and that difference is behind a large share of deliverability problems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DKIM-Signature&lt;/strong&gt; is a cryptographic signature added by the sending server. The part to look at is &lt;code&gt;d=&lt;/code&gt;, the domain that signed the message.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Authentication-Results&lt;/strong&gt; is the receiving server's verdict. This is the line to read first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Received&lt;/strong&gt; lines record the route. Each server that handled the message adds one at the top, so you read them from the bottom up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the verdict first
&lt;/h2&gt;

&lt;p&gt;Find &lt;code&gt;Authentication-Results&lt;/code&gt; and look for three words.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;spf=pass
dkim=pass
dmarc=pass
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If all three say pass, authentication is not your problem, and you can move on to content and reputation. If any of them says fail, none, neutral or softfail, you have found something concrete to fix, and it is very likely the reason for the spam folder.&lt;/p&gt;

&lt;p&gt;Here is what each check means in plain terms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SPF&lt;/strong&gt; asks: is the server that sent this email allowed to send for the Return-Path domain? The answer comes from a DNS record on that domain listing the servers that may send for it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DKIM&lt;/strong&gt; asks: was this message signed by the domain it claims, and has it been changed since? The answer comes from checking the signature against a public key in DNS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DMARC&lt;/strong&gt; asks a stricter question than either: did SPF or DKIM pass &lt;em&gt;for the same domain the reader sees in the From line&lt;/em&gt;?&lt;/p&gt;

&lt;p&gt;That last question is where most confusion comes from.&lt;/p&gt;

&lt;h2&gt;
  
  
  The result that confuses everyone
&lt;/h2&gt;

&lt;p&gt;You will sometimes see this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;spf=pass smtp.mailfrom=em.someprovider.net
dkim=pass header.i=@someprovider.net
dmarc=fail header.from=acme.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;SPF passed. DKIM passed. DMARC failed. It looks like a mistake by Gmail. It is not.&lt;/p&gt;

&lt;p&gt;Look at the domains. SPF passed for &lt;code&gt;em.someprovider.net&lt;/code&gt;. DKIM passed for &lt;code&gt;someprovider.net&lt;/code&gt;. The From address is on &lt;code&gt;acme.com&lt;/code&gt;. Both checks passed, but they passed for your email provider's domain, not for yours.&lt;/p&gt;

&lt;p&gt;DMARC requires at least one of them to pass for a domain that matches the From domain. This match is called &lt;strong&gt;alignment&lt;/strong&gt;. Without it, the receiving server has proof that your provider sent the email and no proof that you did.&lt;/p&gt;

&lt;p&gt;The fix is in your email provider's settings, not in your writing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set up &lt;strong&gt;custom DKIM&lt;/strong&gt;, so the signature says &lt;code&gt;d=acme.com&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Set up a &lt;strong&gt;custom Return-Path&lt;/strong&gt; (often called a custom MAIL FROM domain), so SPF is checked against a subdomain of yours.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Either one gives you alignment. Do both, because forwarding often breaks SPF while a DKIM signature usually survives it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three domains, compared
&lt;/h2&gt;

&lt;p&gt;It helps to write them side by side.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Where to find it&lt;/th&gt;
&lt;th&gt;In a healthy email&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;From domain&lt;/td&gt;
&lt;td&gt;&lt;code&gt;header.from&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;acme.com&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Return-Path domain&lt;/td&gt;
&lt;td&gt;&lt;code&gt;smtp.mailfrom&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;mail.acme.com&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DKIM domain&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;header.i&lt;/code&gt; or &lt;code&gt;d=&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;acme.com&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If the second and third rows show your own domain or a subdomain of it, you are aligned. If they show your provider's name, you are borrowing their identity, and DMARC will fail the moment you publish a policy that enforces it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the other lines can tell you
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Delays.&lt;/strong&gt; Read the &lt;code&gt;Received&lt;/code&gt; lines from the bottom up and compare the timestamps. If an email took forty minutes to arrive, one pair of lines will show a forty-minute gap, and the server named there is where it waited.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who really sent it.&lt;/strong&gt; The lowest &lt;code&gt;Received&lt;/code&gt; lines show the first servers that handled the message. If you think an email came from your own system and those lines name a service you have never heard of, something else is sending as you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Whether unsubscribing is easy.&lt;/strong&gt; A marketing email should carry a &lt;code&gt;List-Unsubscribe&lt;/code&gt; header. That header is what puts the "Unsubscribe" link next to the sender name in Gmail. If it is missing, readers who want out have one button left to press: "Report spam".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reply handling.&lt;/strong&gt; If there is a &lt;code&gt;Reply-To&lt;/code&gt; header, replies go there and not to the From address. A reply-to on a different domain from the From address is another small thing some filters notice.&lt;/p&gt;

&lt;h2&gt;
  
  
  When everything passes and it still goes to spam
&lt;/h2&gt;

&lt;p&gt;Authentication proves who you are. It does not prove that people want your email. If all three checks pass, the cause is one of these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reputation.&lt;/strong&gt; A new domain, or a sudden jump in volume, has no history. Mailbox providers are cautious until they see how recipients react.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complaints.&lt;/strong&gt; If people mark your email as spam, later emails follow it there. Gmail has said it expects bulk senders to stay below a 0.3% complaint rate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;List quality.&lt;/strong&gt; Sending to old or bought lists produces bounces and complaints, and both count against the domain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Content.&lt;/strong&gt; It matters less than people think, but a message that is one large image, or that hides its unsubscribe link, is easy to distrust.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These take longer to fix than a DNS record. But you should only start on them after the header says pass three times, because until then you are solving the wrong problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  A two-minute routine
&lt;/h2&gt;

&lt;p&gt;Next time an email misbehaves:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Send it to a Gmail account and open "Show original".&lt;/li&gt;
&lt;li&gt;Read the SPF, DKIM and DMARC results. All three should say pass.&lt;/li&gt;
&lt;li&gt;Compare the From domain with the Return-Path domain and the DKIM &lt;code&gt;d=&lt;/code&gt; domain. At least one should match yours.&lt;/li&gt;
&lt;li&gt;If something fails, fix it with your email provider: custom DKIM and a custom Return-Path.&lt;/li&gt;
&lt;li&gt;If everything passes, look at reputation, complaints and list quality, in that order.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The header will not tell you everything. It will tell you, in the receiving server's own words, whether the problem is who you are or what you sent, and that is the question to answer first.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;We build Cresca, an email platform for marketing campaigns and transactional email. It signs your email with DKIM for your own domain and uses a custom MAIL FROM subdomain, so both checks align with your From address. Our glossary has a short reference for every field mentioned here: &lt;a href="https://www.cresca.xyz/glossary/email-header" rel="noopener noreferrer"&gt;email header&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>email</category>
      <category>devops</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>SPF has a 10-lookup limit. Every tool you add uses part of it.</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Wed, 18 Nov 2026 04:46:35 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/spf-has-a-10-lookup-limit-every-tool-you-add-uses-part-of-it-3il4</link>
      <guid>https://dev.to/lalitkumarjangid/spf-has-a-10-lookup-limit-every-tool-you-add-uses-part-of-it-3il4</guid>
      <description>&lt;p&gt;Your SPF record probably started small:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v=spf1 include:_spf.google.com ~all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then someone added the newsletter tool. Then the help desk. Then the CRM, the invoicing app, and the transactional email service. Each one said "add this include to your SPF record", and each time it worked.&lt;/p&gt;

&lt;p&gt;Until one day it didn't, and nothing looked different. Every email from your domain started failing SPF at the same moment. Not one tool: all of them.&lt;/p&gt;

&lt;p&gt;The cause is a rule many people never hear about: &lt;strong&gt;SPF allows at most 10 DNS lookups.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How the limit works
&lt;/h2&gt;

&lt;p&gt;When a mail server checks SPF, it reads your record and follows it. Some parts of the record make the server do another DNS lookup. The SPF standard (RFC 7208) caps those lookups at 10 per check. Go over, and the result is &lt;code&gt;permerror&lt;/code&gt;, a permanent error. Most receivers treat that like a fail.&lt;/p&gt;

&lt;p&gt;These parts &lt;strong&gt;count&lt;/strong&gt; toward the 10:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;include:&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;a&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mx&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ptr&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;exists:&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;redirect=&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These parts &lt;strong&gt;don't count&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ip4:&lt;/code&gt; and &lt;code&gt;ip6:&lt;/code&gt; (the address is written right there, so no lookup)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;all&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The part people miss: &lt;strong&gt;includes are counted all the way down.&lt;/strong&gt; When you add &lt;code&gt;include:_spf.vendor.com&lt;/code&gt;, the receiver opens that record too, and every include, &lt;code&gt;a&lt;/code&gt; or &lt;code&gt;mx&lt;/code&gt; inside it counts against &lt;em&gt;your&lt;/em&gt; 10. A single include can quietly cost three or four lookups.&lt;/p&gt;

&lt;p&gt;There is a second, smaller limit: lookups that come back empty (the domain doesn't exist, or has no record) are capped at 2. An include pointing at a vendor you cancelled years ago can trip it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Count your lookups
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;dig&lt;/code&gt; shows your top-level record:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig TXT example.com +short &lt;span class="o"&gt;|&lt;/span&gt; grep spf1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But that doesn't follow the includes, which is where the cost hides. Here's a short Node script that does:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// spf-count.mjs: node spf-count.mjs example.com&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;resolveTxt&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'node:dns/promises'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getSpf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;domain&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;resolveTxt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;domain&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;spf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'v=spf1'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;spf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${domain}: found ${spf.length} SPF records (must be exactly 1)`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;spf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;domain&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;depth&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;spf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getSpf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;domain&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;lookups&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;term&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;spf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;+/&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;\&lt;span class="o"&gt;-~?&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pad&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'  '&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;depth&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'include:'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'redirect='&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;lookups&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${pad}${t}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;lookups&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;depth&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;mx&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;ptr&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;$&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;lookups&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${pad}${t}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;lookups&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;domain&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;domain&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`\n${domain}: ${total} DNS lookups (limit is 10)`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it on your own domain. The indented tree shows which include is expensive. It's a quick check, not a full validator: it doesn't expand SPF macros, and &lt;code&gt;mx&lt;/code&gt; and &lt;code&gt;ptr&lt;/code&gt; make extra lookups behind the scenes. That's one more reason to avoid them.&lt;/p&gt;

&lt;p&gt;Notice the error for "found 2 SPF records". A domain must have exactly one record starting with &lt;code&gt;v=spf1&lt;/code&gt;. Two records is also a &lt;code&gt;permerror&lt;/code&gt;, and it's a common mistake when a new tool's setup guide says "add this TXT record" and someone adds a second one instead of editing the first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it matters more now
&lt;/h2&gt;

&lt;p&gt;Since February 2024, Gmail and Yahoo require bulk senders to pass SPF and DKIM and to publish a DMARC record. A broken SPF record no longer just costs you a little reputation. It can push mail to spam or get it rejected.&lt;/p&gt;

&lt;p&gt;DMARC passes if &lt;strong&gt;either&lt;/strong&gt; SPF or DKIM passes &lt;em&gt;and&lt;/em&gt; lines up with your From domain. So if your DKIM is set up correctly for each sending tool, a broken SPF won't sink every email. Many teams find out their DKIM was never set up for one of those tools only when SPF breaks.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to get back under 10
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Remove includes for tools you no longer use.&lt;/strong&gt; This is the most common fix. Ask whoever handles DNS for the list of tools, and remove every include you can't match to a tool that still sends.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Check which domain each tool actually checks SPF against.&lt;/strong&gt; This one surprises people. SPF isn't checked against the From address your readers see. It's checked against the envelope sender, the Return-Path. Many sending services use their own domain, or a subdomain of yours like &lt;code&gt;mail.example.com&lt;/code&gt;, as the Return-Path. If so, their include doesn't belong on your root domain at all, and removing it costs nothing.&lt;/p&gt;

&lt;p&gt;Open an email from each tool, view the header, and look at the &lt;code&gt;Return-Path&lt;/code&gt; line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight email"&gt;&lt;code&gt;&lt;span class="nc"&gt;Return&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;bounces&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;123&lt;/span&gt;@&lt;span class="n"&gt;mail&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If that domain isn't your root domain, the include on your root is doing nothing for that tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Move bulk sending to a subdomain.&lt;/strong&gt; Send newsletters from &lt;code&gt;news.example.com&lt;/code&gt;, with its own SPF record. Your root record then only covers the mail your team sends day to day.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Replace &lt;code&gt;a&lt;/code&gt; and &lt;code&gt;mx&lt;/code&gt; with explicit IPs&lt;/strong&gt; if those servers rarely change. &lt;code&gt;ip4:&lt;/code&gt; costs nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Be careful with "SPF flattening".&lt;/strong&gt; Flattening means replacing includes with the IP ranges they currently resolve to. It gets you under the limit, but vendors change their IPs, and a flattened record quietly goes out of date. Only do it with a tool that updates the record automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 2-minute check
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Run the script on your domain. Over 8? You're one new tool away from breaking.&lt;/li&gt;
&lt;li&gt;Make sure there is exactly one &lt;code&gt;v=spf1&lt;/code&gt; record.&lt;/li&gt;
&lt;li&gt;List every include and match each to a tool that still sends.&lt;/li&gt;
&lt;li&gt;Check the Return-Path of each tool's emails.&lt;/li&gt;
&lt;li&gt;Confirm DKIM passes for every tool, so one SPF mistake can't take down all your mail.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;We build Cresca, an email platform for marketing email and transactional email. We see broken SPF records in sender setups often enough that we wrote this down.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>email</category>
      <category>devops</category>
      <category>dns</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Google indexed 29 of our 30 key pages. Searches without our name brought zero clicks.</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Wed, 18 Nov 2026 04:45:50 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/google-indexed-29-of-our-30-key-pages-searches-without-our-name-brought-zero-clicks-29ka</link>
      <guid>https://dev.to/lalitkumarjangid/google-indexed-29-of-our-30-key-pages-searches-without-our-name-brought-zero-clicks-29ka</guid>
      <description>&lt;p&gt;For three months we looked at our Search Console numbers and assumed Google wasn't indexing our pages. Then we checked properly.&lt;/p&gt;

&lt;p&gt;Here is our data for 15 August to 15 November 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;2,907 impressions, 22 clicks&lt;/li&gt;
&lt;li&gt;Every one of those 22 clicks came from people searching for our name&lt;/li&gt;
&lt;li&gt;Searches without our name: 1,848 impressions, &lt;strong&gt;0 clicks&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So we ran Google's URL Inspection on the 30 pages that matter most to us: the homepage, product pages, comparison pages and our biggest blog posts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;29 of 30 came back "Submitted and indexed".&lt;/strong&gt; Robots.txt allowed them, the fetch worked, and the canonical Google chose matched ours.&lt;/p&gt;

&lt;p&gt;Indexing wasn't the problem. Here is what we found instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The one page that failed: Google kept the old domain
&lt;/h2&gt;

&lt;p&gt;One page, &lt;code&gt;/features&lt;/code&gt;, came back as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;coverageState:   Duplicate, Google chose different canonical than user
userCanonical:   https://www.cresca.xyz/features
googleCanonical: https://cresca.xyz/features
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In October we moved from &lt;code&gt;cresca.xyz&lt;/code&gt; to &lt;code&gt;www.cresca.xyz&lt;/code&gt;. The old address returns a 301 to the new one. Google still picked the old address as the main version and dropped ours.&lt;/p&gt;

&lt;p&gt;After a domain move, Google keeps old signals for weeks. A 301 is a hint, not an order. If you moved domains this year, inspect your important pages one by one. A page can quietly fall out of the index this way, and the Pages report won't make it obvious.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Google was ranking an old version of our pages
&lt;/h2&gt;

&lt;p&gt;URL Inspection shows the last crawl date. We compared it with the last time we edited each page:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Page&lt;/th&gt;
&lt;th&gt;Last crawled&lt;/th&gt;
&lt;th&gt;Edited after that?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Gmail/Yahoo sender rules post&lt;/td&gt;
&lt;td&gt;17 Oct&lt;/td&gt;
&lt;td&gt;Yes, twice&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A comparison page&lt;/td&gt;
&lt;td&gt;18 Oct&lt;/td&gt;
&lt;td&gt;Yes, twice&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI template generator page&lt;/td&gt;
&lt;td&gt;24 Oct&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Email benchmarks page&lt;/td&gt;
&lt;td&gt;27 Oct&lt;/td&gt;
&lt;td&gt;Yes, twice&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;We kept improving pages that Google hadn't looked at since. Every ranking decision for those pages was still based on the October version.&lt;/p&gt;

&lt;p&gt;Two lessons. Check the crawl date before you judge whether a change worked. And stop editing a page for a few weeks so Google can settle on one version.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Indexed doesn't mean "in the top 100"
&lt;/h2&gt;

&lt;p&gt;For our main topics ("email marketing", "transactional email", "AI email marketing", "email API") we had &lt;strong&gt;zero impressions in three months&lt;/strong&gt;. Zero impressions usually means you aren't in the top 100 at all.&lt;/p&gt;

&lt;p&gt;Those searches belong to sites with years of links behind them. We have links from 19 other sites. No amount of tweaking a title fixes that gap. For a young site the realistic targets are longer, narrower searches.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Some of our pages were the wrong kind of page
&lt;/h2&gt;

&lt;p&gt;This was the most useful finding, and the cheapest to check. Search your own target phrase and look at what kind of page wins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"ai email template generator":&lt;/strong&gt; page 1 was almost all free tools that work without signing up. Several said "free, no signup" in the title. Ours is a product page with a signup button. Google has decided what people want for that search, and it isn't our kind of page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"crm email integration":&lt;/strong&gt; page 1 was mostly lists ("best email tools with CRM integration"). We had rewritten our post from a list into a how-to guide. It probably got better to read and worse to rank.&lt;/p&gt;

&lt;p&gt;Before you write or rewrite a page, check what kind of page Google already rewards for that search: a list, a tool, a guide, a product page. If yours is a different kind, better writing won't close the gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Big brands weren't the only ones beating us
&lt;/h2&gt;

&lt;p&gt;We expected page 1 to be all big brands. For two of the four searches we checked, it included several small sites. Many had older pages, and probably more links than we do.&lt;/p&gt;

&lt;p&gt;That's good news. It means the gap can be closed. It just takes time and links, not a rewrite.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Our own links pointed at the wrong places
&lt;/h2&gt;

&lt;p&gt;URL Inspection also lists a "referring page": a page where Google found a link to this URL. For most of our product pages it listed only one or two, and they were odd ones: an API reference page, a blog filter page with &lt;code&gt;?category=&lt;/code&gt; in the address.&lt;/p&gt;

&lt;p&gt;Our homepage and blog index weren't the pages passing links to the pages we care about. That's an easy fix in code.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to run this check yourself
&lt;/h2&gt;

&lt;p&gt;You can click through URL Inspection in Search Console by hand, one URL at a time. Or call the API. You need an OAuth token for a Google account that has access to the property.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// inspect.mjs: node inspect.mjs https://www.example.com/page&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;SITE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'sc-domain:example.com'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// or 'https://www.example.com/'&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;TOKEN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;GSC_TOKEN&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;// OAuth access token with the webmasters scope&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s1"&gt;'https://searchconsole.googleapis.com/v1/urlInspection/index:inspect'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'POST'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${TOKEN}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s1"&gt;'Content-Type'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'application/json'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;inspectionUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;siteUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;SITE&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;inspectionResult&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;inspectionResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;indexStatusResult&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;coverage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;coverageState&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;lastCrawl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lastCrawlTime&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;googleCanonical&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;googleCanonical&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;yourCanonical&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;userCanonical&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;foundVia&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;referringUrls&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The fields that matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;coverageState&lt;/code&gt;: "Submitted and indexed" is what you want. Anything with "Duplicate" or "Crawled - currently not indexed" needs a look.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;googleCanonical&lt;/code&gt; vs &lt;code&gt;userCanonical&lt;/code&gt;: if they differ, Google is ranking a different URL than the one you think.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;lastCrawlTime&lt;/code&gt;: compare it with your last edit.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;referringUrls&lt;/code&gt;: where Google found links to this page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The API has a daily quota per property, so inspect the pages that matter, not your whole sitemap.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we're doing now
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;We requested indexing for the 7 pages that changed after their last crawl, including the one stuck on the old domain.&lt;/li&gt;
&lt;li&gt;We stopped editing those pages for three to four weeks.&lt;/li&gt;
&lt;li&gt;We're fixing internal links so the homepage and blog point at the pages that matter.&lt;/li&gt;
&lt;li&gt;We're working on links from other sites, which is the real gap.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We'll publish the numbers again in a month, whatever they show.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We build Cresca, an email platform for marketing email and transactional email. Our SEO is a work in progress, as you can see.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>startup</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>Email Marketing for SaaS: The 2026 Guide</title>
      <dc:creator>Lalit Kumar Jangid</dc:creator>
      <pubDate>Mon, 16 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/lalitkumarjangid/email-marketing-for-saas-the-2026-guide-2g69</link>
      <guid>https://dev.to/lalitkumarjangid/email-marketing-for-saas-the-2026-guide-2g69</guid>
      <description>&lt;p&gt;&lt;strong&gt;Email marketing for SaaS&lt;/strong&gt; is not the same job as email marketing for a shop or a newsletter. A software company sends two kinds of email at once: the messages your product sends because a user did something, and the messages your team sends because you want users to do something. Get the first kind wrong and people cannot log in. Get the second kind wrong and they never find out why your product is worth paying for. This guide covers both: how to set up your sending, which emails to send at each stage of a customer's life, how to segment without a data team, what to measure, and a 30-day plan you can start this week.&lt;/p&gt;

&lt;p&gt;We build Cresca, an email platform that sends both kinds from one account, so this is the playbook we use ourselves and the one we see work for the teams on it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why email marketing for SaaS is different
&lt;/h2&gt;

&lt;p&gt;Three things set software apart from most other businesses that send email.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your customer relationship lives inside the product.&lt;/strong&gt; A shop sells something and the email is the main way back to the customer. A SaaS company has the customer in its app every day, or at least it hopes so. Email's job is to bring people back into the product at the right moments: when they have stalled, when something changed, when they are about to get value they have not noticed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The money comes later.&lt;/strong&gt; Most SaaS revenue arrives months after signup, through a trial converting, a plan upgrade or simply not cancelling. That makes the emails you send in week one far more valuable than the ones you send in month twelve, because they decide whether month twelve happens.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Half your email is not marketing at all.&lt;/strong&gt; Verification links, password resets, receipts and security alerts are part of the product. Users open them because they need them. They still shape how people feel about you, and they share a domain and a reputation with your marketing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two streams: product email and marketing email
&lt;/h2&gt;

&lt;p&gt;Before writing a single campaign, separate the two kinds of email in your head and in your setup.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Product (transactional) email&lt;/th&gt;
&lt;th&gt;Marketing email&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Triggered by&lt;/td&gt;
&lt;td&gt;Something the user did, or something that happened to their account&lt;/td&gt;
&lt;td&gt;Your team's decision to send&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Examples&lt;/td&gt;
&lt;td&gt;Verification, password reset, receipt, trial ending, new sign-in&lt;/td&gt;
&lt;td&gt;Product updates, newsletters, webinars, offers, win-back emails&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sent to&lt;/td&gt;
&lt;td&gt;One person at a time&lt;/td&gt;
&lt;td&gt;A list or segment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Consent&lt;/td&gt;
&lt;td&gt;Expected as part of using the product&lt;/td&gt;
&lt;td&gt;Only people who agreed to receive it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unsubscribe link&lt;/td&gt;
&lt;td&gt;No (security and billing must always arrive)&lt;/td&gt;
&lt;td&gt;Yes, and a one-click unsubscribe header&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sent from&lt;/td&gt;
&lt;td&gt;Your app's code, through an email API&lt;/td&gt;
&lt;td&gt;A campaign tool&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The line matters for two reasons. The first is legal: marketing email needs consent and an unsubscribe link, product email does not. The second is reputation. If a product update annoys enough people into pressing "Report spam", you do not want your password resets to land in spam alongside it. We cover the difference in more depth in &lt;a href="https://www.cresca.xyz/blog/transactional-vs-marketing-email" rel="noopener noreferrer"&gt;transactional vs marketing email&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set up your sending before you send anything
&lt;/h2&gt;

&lt;p&gt;Most deliverability problems in SaaS email marketing are set up on day one and discovered on day ninety. An hour of setup avoids them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Send from your own domain
&lt;/h3&gt;

&lt;p&gt;Every email should come from an address on a domain you own, signed for that domain. Mailbox providers judge your domain's reputation over time, and you want that reputation to belong to you, not to a shared pool at an email provider.&lt;/p&gt;

&lt;h3&gt;
  
  
  Use a subdomain for each stream
&lt;/h3&gt;

&lt;p&gt;A common and sensible setup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;mail.yourapp.com&lt;/code&gt; for product email: verification, resets, receipts, alerts.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;news.yourapp.com&lt;/code&gt; for marketing email: updates, newsletters, campaigns.&lt;/li&gt;
&lt;li&gt;Your main domain, &lt;code&gt;yourapp.com&lt;/code&gt;, for your team's everyday inbox.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each subdomain builds its own reputation, so a campaign that goes badly does not drag your password resets down with it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Authenticate with SPF, DKIM and DMARC
&lt;/h3&gt;

&lt;p&gt;These three DNS records tell receiving servers that your email really comes from you. SPF lists the servers allowed to send for the domain, DKIM signs each message, and DMARC tells servers what to do when the checks fail. The detail that trips most teams up is alignment: the checks must pass for &lt;em&gt;your&lt;/em&gt; domain, not your email provider's. Our guide to &lt;a href="https://www.cresca.xyz/blog/email-deliverability-spf-dkim-dmarc-done-right" rel="noopener noreferrer"&gt;SPF, DKIM and DMARC&lt;/a&gt; walks through it, and our &lt;a href="https://www.cresca.xyz/research/email-authentication" rel="noopener noreferrer"&gt;DMARC adoption study&lt;/a&gt; shows how many large domains still have not finished the job.&lt;/p&gt;

&lt;h3&gt;
  
  
  Warm up a new domain
&lt;/h3&gt;

&lt;p&gt;A brand-new sending domain has no history. Start with small volumes to your most engaged users and grow over a few weeks. Sending 20,000 emails on the first day from a domain nobody has seen is one of the fastest ways into the spam folder. Our &lt;a href="https://www.cresca.xyz/blog/domain-warmup-guide" rel="noopener noreferrer"&gt;domain warm-up guide&lt;/a&gt; has a ramp you can follow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Meet the big mailbox rules
&lt;/h3&gt;

&lt;p&gt;Gmail and Yahoo require bulk senders to authenticate, publish DMARC, offer one-click unsubscribe on marketing email and keep spam complaints low. If you send marketing email to thousands of people, read our checklist of the &lt;a href="https://www.cresca.xyz/blog/gmail-yahoo-sender-requirements" rel="noopener noreferrer"&gt;Gmail and Yahoo sender requirements&lt;/a&gt; before your first campaign.&lt;/p&gt;

&lt;h2&gt;
  
  
  The SaaS email lifecycle: what to send at each stage
&lt;/h2&gt;

&lt;p&gt;The most useful way to plan email marketing for SaaS is by lifecycle stage. Each stage has one goal, and each email should serve that goal and nothing else.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Goal&lt;/th&gt;
&lt;th&gt;Emails that serve it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Before signup&lt;/td&gt;
&lt;td&gt;Keep interest until you can let people in&lt;/td&gt;
&lt;td&gt;Waitlist confirmation, progress update, invite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Signup&lt;/td&gt;
&lt;td&gt;A working account&lt;/td&gt;
&lt;td&gt;Verification, welcome&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Activation&lt;/td&gt;
&lt;td&gt;The first real result in the product&lt;/td&gt;
&lt;td&gt;One-step nudges, how-to emails, a founder note&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conversion&lt;/td&gt;
&lt;td&gt;A paid plan&lt;/td&gt;
&lt;td&gt;Trial-ending notice, plan comparison, answers to objections&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Expansion&lt;/td&gt;
&lt;td&gt;More use, more seats, a bigger plan&lt;/td&gt;
&lt;td&gt;Feature launches, usage milestones, upgrade confirmation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retention&lt;/td&gt;
&lt;td&gt;Staying&lt;/td&gt;
&lt;td&gt;Monthly product update, useful content, receipts that build trust&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Win-back&lt;/td&gt;
&lt;td&gt;Returning users who drifted&lt;/td&gt;
&lt;td&gt;"What changed since you left", a direct question&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Before signup: the waitlist
&lt;/h3&gt;

&lt;p&gt;If you launch with a waitlist, the emails before launch decide how many people show up on launch day. Confirm at once with a rough date, send a short update while people wait, then send an invite with one button. We wrote the full sequence with subject lines in our &lt;a href="https://www.cresca.xyz/examples/waitlist-email-examples" rel="noopener noreferrer"&gt;waitlist email examples&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Signup: verification and welcome
&lt;/h3&gt;

&lt;p&gt;The verification email should do one thing: prove the address works. No tour, no offers. The welcome email follows straight after and should point to the single action that shows your product working, with an honest estimate of how long it takes. See our &lt;a href="https://www.cresca.xyz/examples/account-verification-email-examples" rel="noopener noreferrer"&gt;verification email examples&lt;/a&gt; and &lt;a href="https://www.cresca.xyz/examples/welcome-email-examples" rel="noopener noreferrer"&gt;welcome email examples&lt;/a&gt; for wording.&lt;/p&gt;

&lt;h3&gt;
  
  
  Activation: the stage that decides everything
&lt;/h3&gt;

&lt;p&gt;Activation is the moment a new user gets their first real result: the first invoice sent, the first report shared, the first teammate invited. Users who reach it are far more likely to stay and pay. Users who do not usually disappear quietly.&lt;/p&gt;

&lt;p&gt;Activation emails work best when they are short, specific and personal. Instead of "Here are 10 things you can do with Acme", send "You created a project but haven't added a task yet. Here is the two-minute way to add your first one." A plain-text note from a founder asking "What made you sign up?" is often the highest-reply email a young SaaS company ever sends, and the answers tell you how to write every other email.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conversion: the trial-ending email
&lt;/h3&gt;

&lt;p&gt;The trial-ending email has to answer the question every reader has: what happens if I do nothing? Give the date, remind them what they have already done in the product, state the price, and say plainly whether the account is paused or deleted. Surprised customers become support tickets and chargebacks. Informed ones make a decision. Our &lt;a href="https://www.cresca.xyz/examples/notification-email-examples" rel="noopener noreferrer"&gt;notification email examples&lt;/a&gt; include a trial-ending email you can adapt.&lt;/p&gt;

&lt;h3&gt;
  
  
  Expansion: product updates people read
&lt;/h3&gt;

&lt;p&gt;Lead with what the customer can now do, not what your team built. "Your clients can now pay by card" beats "We rebuilt our payments system". Send big launches on their own and collect small changes into a monthly round-up. Our &lt;a href="https://www.cresca.xyz/examples/product-update-email-examples" rel="noopener noreferrer"&gt;product update email examples&lt;/a&gt; show both formats.&lt;/p&gt;

&lt;h3&gt;
  
  
  Retention: earning a place in the inbox
&lt;/h3&gt;

&lt;p&gt;Between launches, the emails that keep people subscribed are the useful ones: a short guide to a feature they have not tried, a benchmark from your own data, a customer's story told honestly. If an email would not be worth reading from a company you did not use, it is probably not worth sending.&lt;/p&gt;

&lt;h3&gt;
  
  
  Win-back: asking a real question
&lt;/h3&gt;

&lt;p&gt;For users who stopped logging in, the best win-back email is often one line from a person: "You haven't used Acme since March. Was something missing?" Some people will tell you exactly what to build. Some will come back. And if you get no answer at all from a group after a few attempts, stop emailing them; inactive addresses hurt your reputation more than they help your numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building a SaaS email list you can actually use
&lt;/h2&gt;

&lt;p&gt;For a SaaS company, the best list is your own signups. You already have their address and they already chose your product. The question is which of them have agreed to marketing email.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ask at signup.&lt;/strong&gt; A clear, unticked checkbox such as "Send me product updates and tips" gives you consent you can rely on. Product email does not need the checkbox; marketing email does.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grow from your content.&lt;/strong&gt; A newsletter signup on your blog, docs and pricing page brings in people who are evaluating you, not just users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confirm when in doubt.&lt;/strong&gt; &lt;a href="https://www.cresca.xyz/blog/double-opt-in-explained" rel="noopener noreferrer"&gt;Double opt-in&lt;/a&gt; costs a few signups and saves you from typos, bots and spam traps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never buy a list.&lt;/strong&gt; Purchased addresses produce bounces and complaints, and both count against your domain.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For more ways to grow, see our guide to &lt;a href="https://www.cresca.xyz/blog/growing-an-email-list" rel="noopener noreferrer"&gt;growing an email list&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Segmentation for SaaS without a data team
&lt;/h2&gt;

&lt;p&gt;You do not need a customer data platform to segment well. Four simple lists cover most of what a growing SaaS company needs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;By plan:&lt;/strong&gt; free, trial and paid users need different emails. Never send an upgrade pitch to someone who upgraded yesterday.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;By lifecycle stage:&lt;/strong&gt; signed up this week, active, quiet for 30 days, cancelled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;By role or use case:&lt;/strong&gt; what people told you at signup, if you asked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;By signup month:&lt;/strong&gt; useful for checking whether newer users behave differently after a product change.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Export these from your database as lists, refresh them before each send, and you have segmentation that works on day one. Our article on &lt;a href="https://www.cresca.xyz/blog/email-segmentation-15-segments-that-matter" rel="noopener noreferrer"&gt;15 email segments that matter&lt;/a&gt; goes further once you have the basics.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing SaaS emails that get read
&lt;/h2&gt;

&lt;p&gt;The rules that make SaaS email work are short:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The subject line says what the email is.&lt;/strong&gt; "Your trial ends Monday" outperforms anything clever, because the reader knows whether they need it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One email, one job.&lt;/strong&gt; One link or button. A second call to action halves the attention on the first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write from a person.&lt;/strong&gt; "Maya from Acme" gets more replies than "The Acme Team", and replies are a signal mailbox providers trust.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the design light.&lt;/strong&gt; Most SaaS email works best close to plain text, with one button. See &lt;a href="https://www.cresca.xyz/blog/plain-text-vs-html-email" rel="noopener noreferrer"&gt;plain text vs HTML email&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Show, do not list.&lt;/strong&gt; One screenshot of the new feature beats five bullet points describing it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make replies welcome.&lt;/strong&gt; Never use a no-reply address. Every reply is a support question you can answer or research you did not have to pay for.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For subject lines in particular, our guide on &lt;a href="https://www.cresca.xyz/blog/how-to-write-email-subject-lines" rel="noopener noreferrer"&gt;how to write email subject lines&lt;/a&gt; has formulas and examples.&lt;/p&gt;

&lt;h2&gt;
  
  
  Metrics that matter in email marketing for SaaS
&lt;/h2&gt;

&lt;p&gt;Open rates are the number everyone checks and the one that tells you least. Apple Mail Privacy Protection and image proxies have made opens unreliable, as we explain in &lt;a href="https://www.cresca.xyz/blog/why-open-rates-stopped-being-reliable" rel="noopener noreferrer"&gt;why open rates stopped being reliable&lt;/a&gt;. For SaaS, measure email by what happens in the product.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;What it tells you&lt;/th&gt;
&lt;th&gt;Where it comes from&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Activation rate&lt;/td&gt;
&lt;td&gt;Whether onboarding email helps people reach their first result&lt;/td&gt;
&lt;td&gt;Your product analytics&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trial-to-paid conversion&lt;/td&gt;
&lt;td&gt;Whether conversion email answers the right questions&lt;/td&gt;
&lt;td&gt;Your billing system&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Click rate on one link&lt;/td&gt;
&lt;td&gt;Whether the email's single job was clear&lt;/td&gt;
&lt;td&gt;Your email tool (if click tracking is on)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reply rate&lt;/td&gt;
&lt;td&gt;Whether people see a person behind the email&lt;/td&gt;
&lt;td&gt;Your inbox&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unsubscribe and complaint rate&lt;/td&gt;
&lt;td&gt;Whether you are sending too much, or the wrong thing&lt;/td&gt;
&lt;td&gt;Your email tool and postmaster tools&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bounce rate&lt;/td&gt;
&lt;td&gt;Whether your list is clean&lt;/td&gt;
&lt;td&gt;Your email tool&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If one number has to win, choose activation. Email marketing for SaaS succeeds when more new users reach their first real result, and everything else follows from that. Our article on &lt;a href="https://www.cresca.xyz/blog/email-marketing-metrics-that-matter" rel="noopener noreferrer"&gt;email marketing metrics that matter&lt;/a&gt; covers the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  A 30-day plan to start SaaS email marketing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Week 1: set up.&lt;/strong&gt; Choose subdomains for product and marketing email. Publish SPF, DKIM and DMARC for each. Add a marketing consent checkbox to signup. Read every product email your app already sends and fix the ones with unclear subject lines or more than one job.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Week 2: signup and activation.&lt;/strong&gt; Rewrite the welcome email around one action. Write one activation email for users who signed up but did not reach the first result after three days. Send a plain-text founder note to everyone who signed up this month and read every reply.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Week 3: conversion.&lt;/strong&gt; Rewrite the trial-ending email so it answers "what happens if I do nothing?". Add the user's own progress to it. Check that receipts and failed-payment emails state the amount, the date and what happens next.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Week 4: your first campaign.&lt;/strong&gt; Send one product update to everyone who agreed to marketing email: one change, explained as a benefit, with one button. Measure clicks on that button and the activation of the feature in your product, not opens.&lt;/p&gt;

&lt;p&gt;After 30 days you will have a clean setup, a working onboarding path and one campaign's worth of real data. That is a better foundation than a twelve-email sequence written before you knew what your users needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes in SaaS email marketing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sending product and marketing email from the same address.&lt;/strong&gt; One bad campaign can delay your password resets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A welcome email that lists every feature.&lt;/strong&gt; It gives the reader nothing to do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Marketing to everyone who ever signed up.&lt;/strong&gt; Only people who agreed should get marketing email.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Judging email by open rate.&lt;/strong&gt; Measure what happens in the product.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long automated sequences written on day one.&lt;/strong&gt; Start with three or four emails you understand and add more when the data says so.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Using a no-reply address.&lt;/strong&gt; It throws away your best feedback.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring bounces.&lt;/strong&gt; Addresses that hard bounce should never be emailed again; see &lt;a href="https://www.cresca.xyz/blog/suppression-lists-and-bounces" rel="noopener noreferrer"&gt;suppression lists and bounces&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How Cresca handles email marketing for SaaS
&lt;/h2&gt;

&lt;p&gt;We built Cresca because most SaaS teams end up paying for two tools: one for campaigns and one for the email their app sends. In Cresca both live in one account and send from your own verified domain.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Marketing campaigns:&lt;/strong&gt; describe the email in a sentence and &lt;a href="https://www.cresca.xyz/cresca-ai" rel="noopener noreferrer"&gt;Cresca AI&lt;/a&gt; designs a complete, on-brand email you can edit, then send or schedule it to a contact list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Product email:&lt;/strong&gt; design templates with variables such as &lt;code&gt;{{{FIRST_NAME}}}&lt;/code&gt;, publish them, and send them from your app with one request to the &lt;a href="https://www.cresca.xyz/transactional-email" rel="noopener noreferrer"&gt;transactional email API&lt;/a&gt;. The &lt;a href="https://www.cresca.xyz/docs/quickstart" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt; gets you to a first email in minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own domain:&lt;/strong&gt; DKIM signing and a custom MAIL FROM subdomain on your domain, so authentication aligns with your From address.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tracking that respects privacy:&lt;/strong&gt; open and click tracking is opt-in per sending domain, with bots excluded.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Suppression built in:&lt;/strong&gt; hard bounces and complaints are blocked from future sends automatically.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Automated campaign sequences are launching soon. Until then, product email can be triggered from your app through the API, and lifecycle campaigns can be scheduled to lists you refresh from your database. Plans start with a &lt;a href="https://www.cresca.xyz/pricing" rel="noopener noreferrer"&gt;free 30-day period&lt;/a&gt; and paid plans from $29 a month.&lt;/p&gt;

&lt;h2&gt;
  
  
  Email marketing for SaaS: frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is email marketing for SaaS?
&lt;/h3&gt;

&lt;p&gt;It is the use of email to move software users through their lifecycle: from signup to activation, paid conversion, expansion and retention. It combines product (transactional) email sent by your app with marketing email sent by your team.&lt;/p&gt;

&lt;h3&gt;
  
  
  How many emails should a SaaS onboarding sequence have?
&lt;/h3&gt;

&lt;p&gt;Start with three or four: a welcome email with one action, an activation nudge for users who stall, a founder note asking why they signed up, and a trial-ending email. Add more only when your data shows where users get stuck.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should SaaS product email and marketing email use the same domain?
&lt;/h3&gt;

&lt;p&gt;Use the same main domain but separate subdomains, for example &lt;code&gt;mail.yourapp.com&lt;/code&gt; for product email and &lt;code&gt;news.yourapp.com&lt;/code&gt; for marketing. Each builds its own reputation, so a campaign problem does not affect password resets and receipts.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is a good email metric for a SaaS company?
&lt;/h3&gt;

&lt;p&gt;Activation rate: the share of new users who reach their first real result in the product. It connects email directly to revenue, unlike open rate, which privacy features have made unreliable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do SaaS companies need consent to email their users?
&lt;/h3&gt;

&lt;p&gt;Product email about a user's account, such as receipts and security alerts, does not need marketing consent. Marketing email does, along with an unsubscribe link. The rules differ by country, so check the ones that apply to you; our guide to &lt;a href="https://www.cresca.xyz/blog/email-compliance-gdpr-can-spam" rel="noopener noreferrer"&gt;GDPR and CAN-SPAM&lt;/a&gt; covers the main ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start sending both kinds of SaaS email from one place
&lt;/h2&gt;

&lt;p&gt;Email marketing for SaaS comes down to a few habits: separate your streams, authenticate your domain, plan by lifecycle stage, give every email one job and measure what happens in the product. None of it needs a large team. If you want campaigns and product email in one account, &lt;strong&gt;&lt;a href="https://app.cresca.xyz/signup" rel="noopener noreferrer"&gt;try Cresca free for 30 days&lt;/a&gt;&lt;/strong&gt;, no credit card required.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://www.cresca.xyz/blog/email-marketing-for-saas" rel="noopener noreferrer"&gt;Cresca blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>saas</category>
      <category>email</category>
      <category>startup</category>
      <category>marketing</category>
    </item>
  </channel>
</rss>
