<?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: Peter Park</title>
    <description>The latest articles on DEV Community by Peter Park (@peterpark_coldmail).</description>
    <link>https://dev.to/peterpark_coldmail</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%2F4199347%2F2e7f79e0-226c-4933-a9c3-1cd77c539a4f.png</url>
      <title>DEV Community: Peter Park</title>
      <link>https://dev.to/peterpark_coldmail</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/peterpark_coldmail"/>
    <language>en</language>
    <item>
      <title>How DNS Records (SPF, DKIM, DMARC) Actually Work for Email Deliverability</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Fri, 27 Nov 2026 04:03:00 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/how-dns-records-spf-dkim-dmarc-actually-work-for-email-deliverability-2ag4</link>
      <guid>https://dev.to/peterpark_coldmail/how-dns-records-spf-dkim-dmarc-actually-work-for-email-deliverability-2ag4</guid>
      <description>&lt;p&gt;If you've ever built an app that sends emails — transactional, marketing, or outreach — you've probably hit the "why are my emails going to spam?" wall.&lt;/p&gt;

&lt;p&gt;The answer almost always comes down to three DNS records: &lt;strong&gt;SPF&lt;/strong&gt;, &lt;strong&gt;DKIM&lt;/strong&gt;, and &lt;strong&gt;DMARC&lt;/strong&gt;. Here's a practical breakdown of what each one does and how to set them up correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  SPF (Sender Policy Framework)
&lt;/h2&gt;

&lt;p&gt;SPF tells receiving mail servers which IP addresses are allowed to send email on behalf of your domain.&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h3&gt;
  
  
  How it works:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;You send an email from &lt;code&gt;hello@example.com&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;The receiving server looks up the SPF record for &lt;code&gt;example.com&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;It checks if the sending server's IP is in the allowed list&lt;/li&gt;
&lt;li&gt;If not, the email gets flagged or rejected&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Common mistakes:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Too many DNS lookups&lt;/strong&gt;: SPF allows a maximum of 10 DNS lookups. Each &lt;code&gt;include:&lt;/code&gt; counts as one. Flatten your record if you're close to the limit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Using &lt;code&gt;+all&lt;/code&gt;&lt;/strong&gt;: This tells the world "anyone can send as me." Always use &lt;code&gt;~all&lt;/code&gt; (softfail) or &lt;code&gt;-all&lt;/code&gt; (hardfail).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forgetting third-party senders&lt;/strong&gt;: If you use Mailchimp, SendGrid, or any email service, their servers need to be in your SPF record.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  DKIM (DomainKeys Identified Mail)
&lt;/h2&gt;

&lt;p&gt;DKIM adds a cryptographic signature to your email headers that proves the email hasn't been tampered with in transit.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;selector._domainkey.example.com.  IN  TXT  "v=DKIM1; k=rsa; p=MIGfMA0GCS..."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  How it works:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Your mail server signs each outgoing email with a private key&lt;/li&gt;
&lt;li&gt;The signature is added to the email header as &lt;code&gt;DKIM-Signature&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;The receiving server retrieves your public key from DNS&lt;/li&gt;
&lt;li&gt;It verifies the signature matches the email content&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Setup steps:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Generate a key pair (most email providers do this for you)&lt;/li&gt;
&lt;li&gt;Add the public key as a TXT record in your DNS&lt;/li&gt;
&lt;li&gt;Configure your mail server to sign outgoing emails with the private key&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Pro tip&lt;/strong&gt;: Rotate your DKIM keys every 6-12 months. If a key is compromised, an attacker could send authenticated emails as your domain.&lt;/p&gt;

&lt;h2&gt;
  
  
  DMARC (Domain-based Message Authentication, Reporting &amp;amp; Conformance)
&lt;/h2&gt;

&lt;p&gt;DMARC ties SPF and DKIM together and tells receiving servers what to do when authentication fails.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;_dmarc.example.com.  IN  TXT  "v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com; pct=100"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Policy options:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;p=none&lt;/code&gt;: Monitor only (good for starting out)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;p=quarantine&lt;/code&gt;: Send failing emails to spam&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;p=reject&lt;/code&gt;: Block failing emails entirely&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Recommended rollout:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Start with &lt;code&gt;p=none&lt;/code&gt; and monitor reports for 2-4 weeks&lt;/li&gt;
&lt;li&gt;Move to &lt;code&gt;p=quarantine&lt;/code&gt; once you've confirmed all legitimate senders are properly authenticated&lt;/li&gt;
&lt;li&gt;Graduate to &lt;code&gt;p=reject&lt;/code&gt; for maximum protection&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Checking Your Setup
&lt;/h2&gt;

&lt;p&gt;You can verify your records with these tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;dig&lt;/code&gt; command&lt;/strong&gt;: &lt;code&gt;dig TXT example.com&lt;/code&gt; to check SPF, &lt;code&gt;dig TXT _dmarc.example.com&lt;/code&gt; for DMARC&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MXToolbox&lt;/strong&gt;: &lt;a href="https://mxtoolbox.com" rel="noopener noreferrer"&gt;mxtoolbox.com&lt;/a&gt; for a visual breakdown&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Admin Toolbox&lt;/strong&gt;: Check specific message headers&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why This Matters for Developers
&lt;/h2&gt;

&lt;p&gt;If you're building a SaaS product that sends emails (notifications, receipts, outreach), getting these records right is the difference between landing in the inbox and landing in spam.&lt;/p&gt;

&lt;p&gt;At &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;getcoldmail.com&lt;/a&gt;, we built email generation with deliverability in mind — but the foundation always starts with your DNS setup. No amount of great copy helps if the email never reaches the inbox.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;: Set up SPF to whitelist your sending servers, DKIM to cryptographically sign your emails, and DMARC to enforce the policy. Start with &lt;code&gt;p=none&lt;/code&gt;, monitor, then tighten. Your inbox placement rate will thank you.&lt;/p&gt;

</description>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Build a Cold Email Scoring System with JavaScript</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Wed, 25 Nov 2026 01:13:30 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/how-to-build-a-cold-email-scoring-system-with-javascript-42kl</link>
      <guid>https://dev.to/peterpark_coldmail/how-to-build-a-cold-email-scoring-system-with-javascript-42kl</guid>
      <description>&lt;p&gt;When building &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt;, one of the core features I needed was a way to score cold emails before they go out. Not just grammar checking — but evaluating whether the email is actually likely to get a response.&lt;/p&gt;

&lt;p&gt;Here's the scoring approach I landed on, broken down into code you can adapt for your own projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Scoring Framework
&lt;/h2&gt;

&lt;p&gt;A good cold email score should evaluate these dimensions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Length&lt;/strong&gt; — shorter emails get more replies&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Personalization signals&lt;/strong&gt; — does it reference something specific?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Call-to-action clarity&lt;/strong&gt; — is there exactly one clear ask?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spam trigger words&lt;/strong&gt; — words that hurt deliverability&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reading level&lt;/strong&gt; — simpler language performs better&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Implementation
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Length Score
&lt;/h3&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;scorelength&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;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="n"&gt;wordCount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&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="n"&gt;length&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;wordCount&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;      &lt;span class="c1"&gt;// ideal&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;wordCount&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;85&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;       &lt;span class="c1"&gt;// good&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;wordCount&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;      &lt;span class="c1"&gt;// acceptable&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;wordCount&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;      &lt;span class="c1"&gt;// too long&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                             &lt;span class="c1"&gt;// way too long&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The sweet spot for cold emails is 50-80 words. Anything over 120 words sees a significant drop in reply rates according to multiple industry analyses.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Personalization Detection
&lt;/h3&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;scorePersonalization&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;recipientData&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;score&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;checks&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="n"&gt;pattern&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;recipientData&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;company&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;weight&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="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'company 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="n"&gt;pattern&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;recipientData&lt;/span&gt;&lt;span class="o"&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;weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'recipient 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="n"&gt;pattern&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;recipientData&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'role reference'&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;pattern&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;I&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;saw&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;noticed&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;heard&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;found&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&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;weight&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="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'research signal'&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;pattern&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;recent&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;latest&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&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;weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'timely reference'&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;pattern&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;congratulations&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;congrats&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="o"&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;weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'milestone reference'&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;check&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;checks&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;check&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pattern&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;found&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;check&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pattern&lt;/span&gt; &lt;span class="k"&gt;instanceof&lt;/span&gt; &lt;span class="nb"&gt;RegExp&lt;/span&gt; 
      &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;check&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pattern&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;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;text&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;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;check&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pattern&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="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;found&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;check&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;weight&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="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;score&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&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;h3&gt;
  
  
  3. CTA Clarity
&lt;/h3&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;scoreCTA&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;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="n"&gt;ctaPatterns&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;would&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;you&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;be&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;worth&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;open&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;interested&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;can&lt;/span&gt; &lt;span class="n"&gt;we&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;talk&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;hop&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;free&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quick&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;brief&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="mi"&gt;15&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;min&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;want&lt;/span&gt; &lt;span class="n"&gt;me&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;send&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;share&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;reply&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;with&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="kd"&gt;let&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;me&lt;/span&gt; &lt;span class="n"&gt;know&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;when&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;whether&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&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;ctaCount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ctaPatterns&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="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;p&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;text&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;length&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;ctaCount&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="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;// perfect - one clear CTA&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;ctaCount&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;return&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// no CTA at all&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;ctaCount&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// slightly diluted&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                        &lt;span class="c1"&gt;// too many asks&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Spam Word Detection
&lt;/h3&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;scoreSpamRisk&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;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="n"&gt;spamWords&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="s1"&gt;'guaranteed'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'free trial'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'act now'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'limited time'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'click here'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'buy now'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'no obligation'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'risk free'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'as seen on'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'double your'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'earn extra'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'be your own boss'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'million dollar'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'once in a lifetime'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'special promotion'&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;lowerText&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&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;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;spamWords&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="n"&gt;w&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;lowerText&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="n"&gt;w&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;penalty&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hits&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;20&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;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;penalty&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  5. Putting It Together
&lt;/h3&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;scoreEmail&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;recipientData&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;scores&lt;/span&gt; &lt;span class="o"&gt;=&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="nf"&gt;scorelength&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;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;personalization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;scorePersonalization&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;recipientData&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;cta&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;scoreCTA&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;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;spamRisk&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;scoreSpamRisk&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&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;// Weighted average&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;weights&lt;/span&gt; &lt;span class="o"&gt;=&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="mf"&gt;0.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;personalization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.35&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;cta&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;spamRisk&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.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="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;scores&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reduce&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sum&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;=&amp;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;sum&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scores&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;weights&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="p"&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;0&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="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;overall&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;breakdown&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;suggestions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;generateSuggestions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scores&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;function&lt;/span&gt; &lt;span class="nf"&gt;generateSuggestions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scores&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;suggestions&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;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scores&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;lt;&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;suggestions&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="s1"&gt;'Your email is too long. Try cutting it down to under 80 words.'&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;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;personalization&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;suggestions&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="s1"&gt;'Add a specific reference to the recipient or their company.'&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;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cta&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;suggestions&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="s1"&gt;'Include exactly one clear call-to-action.'&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;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;spamRisk&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;suggestions&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="s1"&gt;'Remove spam trigger words to improve deliverability.'&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;suggestions&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;
  
  
  Usage Example
&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;email&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; \&lt;span class="sb"&gt;`Hi Sarah,

I saw your talk at SaaStr about scaling outbound — the part about hiring SDRs before having a repeatable process really resonated.

We built a tool that helps teams write better cold emails by scoring them before they go out. Would it be worth a 15-min call to see if it could help your team?\`;

const result = scoreEmail(email, { 
  name: 'Sarah', 
  company: 'Acme Corp',
  role: 'VP Sales' 
});

console.log(result);
// { overall: 82, breakdown: { length: 85, personalization: 70, cta: 100, spamRisk: 100 }, suggestions: [] }
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I'd Add Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Subject line scoring&lt;/strong&gt; — separate evaluation for the subject line&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reading level analysis&lt;/strong&gt; — using Flesch-Kincaid or similar&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A/B variant generator&lt;/strong&gt; — automatically create variations to test&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Industry benchmarks&lt;/strong&gt; — compare scores against category averages&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is a simplified version of the scoring logic in &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt;. The production version also takes into account the recipient's industry, the sender's domain reputation, and historical reply data.&lt;/p&gt;

&lt;p&gt;If you're building anything in the email/outreach space, I'd love to hear how you approach scoring. Drop a comment below!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>anonymous</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Set Up Email Authentication (SPF, DKIM, DMARC) for Cold Outreach</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Mon, 23 Nov 2026 01:10:05 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/how-to-set-up-email-authentication-spf-dkim-dmarc-for-cold-outreach-1l5f</link>
      <guid>https://dev.to/peterpark_coldmail/how-to-set-up-email-authentication-spf-dkim-dmarc-for-cold-outreach-1l5f</guid>
      <description>&lt;p&gt;If you're doing any kind of cold email outreach, your emails are probably landing in spam. Not because of what you wrote — but because of how your domain is configured.&lt;/p&gt;

&lt;p&gt;Here's a quick guide to the three email authentication protocols that actually matter, and how to set them up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;Email providers like Gmail and Outlook check three things before delivering your email:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Is this sender allowed to send from this domain?&lt;/strong&gt; (SPF)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Was this email tampered with in transit?&lt;/strong&gt; (DKIM)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What should we do if checks 1 or 2 fail?&lt;/strong&gt; (DMARC)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you haven't set these up, your emails are essentially unsigned letters — easy to ignore and easy to flag.&lt;/p&gt;

&lt;h2&gt;
  
  
  SPF (Sender Policy Framework)
&lt;/h2&gt;

&lt;p&gt;SPF tells receiving servers which mail servers are authorized to send emails on behalf of your domain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to set it up:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Add a TXT record to your domain's DNS:&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;If you use Google Workspace, the above works. For other providers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Outlook/Microsoft 365&lt;/strong&gt;: &lt;code&gt;include:spf.protection.outlook.com&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SendGrid&lt;/strong&gt;: &lt;code&gt;include:sendgrid.net&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mailgun&lt;/strong&gt;: &lt;code&gt;include:mailgun.org&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can combine multiple providers:&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 include:sendgrid.net ~all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Common mistake:&lt;/strong&gt; Having multiple SPF records. You can only have ONE SPF TXT record per domain. Merge them.&lt;/p&gt;

&lt;h2&gt;
  
  
  DKIM (DomainKeys Identified Mail)
&lt;/h2&gt;

&lt;p&gt;DKIM adds a digital signature to your emails so receivers can verify the message wasn't altered.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to set it up:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Generate a DKIM key pair from your email provider's admin panel&lt;/li&gt;
&lt;li&gt;Add the public key as a TXT record in your DNS&lt;/li&gt;
&lt;li&gt;The record name usually looks like: &lt;code&gt;google._domainkey.yourdomain.com&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The value will be a long string starting with &lt;code&gt;v=DKIM1;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Most email providers (Google Workspace, Microsoft 365) have a guided setup. Don't try to generate keys manually unless you're running your own mail server.&lt;/p&gt;

&lt;h2&gt;
  
  
  DMARC (Domain-based Message Authentication)
&lt;/h2&gt;

&lt;p&gt;DMARC ties SPF and DKIM together and tells receivers what to do when authentication fails.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start with a monitoring policy:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This won't reject anything yet — it just sends you reports so you can see what's happening.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;After a few weeks of clean reports, tighten it:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@yourdomain.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And eventually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v=DMARC1; p=reject; rua=mailto:dmarc-reports@yourdomain.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Testing Your Setup
&lt;/h2&gt;

&lt;p&gt;Use these free tools to verify everything is working:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://www.mail-tester.com" rel="noopener noreferrer"&gt;mail-tester.com&lt;/a&gt;&lt;/strong&gt; — Send a test email and get a score out of 10&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://mxtoolbox.com/SuperTool.aspx" rel="noopener noreferrer"&gt;MXToolbox&lt;/a&gt;&lt;/strong&gt; — Check SPF, DKIM, DMARC, and blacklist status&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://toolbox.googleapps.com/apps/checkmx/" rel="noopener noreferrer"&gt;Google Admin Toolbox&lt;/a&gt;&lt;/strong&gt; — Specifically for Google Workspace setups&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Domain Warm-Up
&lt;/h2&gt;

&lt;p&gt;Even with perfect authentication, a brand new domain has no reputation. Email providers are suspicious of new senders.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The warm-up process:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Week 1: Send 5-10 emails/day to people you know will reply&lt;/li&gt;
&lt;li&gt;Week 2: Increase to 15-20/day&lt;/li&gt;
&lt;li&gt;Week 3-4: Gradually scale to your target volume&lt;/li&gt;
&lt;li&gt;Always maintain a mix of sent and received emails&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Key rule:&lt;/strong&gt; Never go from 0 to 100 emails/day overnight. That's the fastest way to get flagged.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] SPF record added (single TXT record, all providers included)&lt;/li&gt;
&lt;li&gt;[ ] DKIM enabled and DNS record published&lt;/li&gt;
&lt;li&gt;[ ] DMARC record added (start with p=none)&lt;/li&gt;
&lt;li&gt;[ ] Domain is at least 2 weeks old before sending&lt;/li&gt;
&lt;li&gt;[ ] Warm-up plan in place&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Getting email authentication right is the unglamorous foundation of cold outreach. No amount of clever copywriting will save an email that lands in the spam folder.&lt;/p&gt;

&lt;p&gt;If you want to test how your cold emails score before sending them out, tools like &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt; can help you generate and optimize your outreach — but the authentication setup above is step zero.&lt;/p&gt;

&lt;p&gt;Happy emailing! 🚀&lt;/p&gt;

</description>
      <category>emailwebdevstartuptutorial</category>
    </item>
    <item>
      <title>Why Your Cold Emails Land in Spam (And How to Fix It)</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Fri, 20 Nov 2026 01:21:25 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/why-your-cold-emails-land-in-spam-and-how-to-fix-it-215j</link>
      <guid>https://dev.to/peterpark_coldmail/why-your-cold-emails-land-in-spam-and-how-to-fix-it-215j</guid>
      <description>&lt;p&gt;If you're building a SaaS and using cold email for outreach, there's a good chance a chunk of your emails are going straight to spam. Here's a developer-friendly breakdown of why that happens and what you can do about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The DNS Trifecta: SPF, DKIM, DMARC
&lt;/h2&gt;

&lt;p&gt;Before you send a single cold email, your domain needs three DNS records configured correctly:&lt;/p&gt;

&lt;h3&gt;
  
  
  SPF (Sender Policy Framework)
&lt;/h3&gt;

&lt;p&gt;SPF tells receiving mail servers which IP addresses are authorized to send email on behalf of your domain.&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;Common mistake: having multiple SPF records. You can only have ONE SPF TXT record per domain. If you use multiple email services, combine them:&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 include:sendgrid.net ~all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  DKIM (DomainKeys Identified Mail)
&lt;/h3&gt;

&lt;p&gt;DKIM adds a cryptographic signature to your outgoing emails. The receiving server checks this signature against a public key in your DNS.&lt;/p&gt;

&lt;p&gt;Most email providers generate the DKIM key pair for you. You just need to add the TXT record they provide. Verify it's working:&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 selector._domainkey.yourdomain.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  DMARC (Domain-based Message Authentication)
&lt;/h3&gt;

&lt;p&gt;DMARC ties SPF and DKIM together and tells servers what to do when checks fail.&lt;/p&gt;

&lt;p&gt;Start with a monitoring policy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you're confident your setup is correct, move to &lt;code&gt;p=quarantine&lt;/code&gt; or &lt;code&gt;p=reject&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Domain Warm-Up: The Part Most Founders Skip
&lt;/h2&gt;

&lt;p&gt;A brand new domain sending 100 emails on day one is a red flag for every spam filter. Here's a practical warm-up schedule:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Week&lt;/th&gt;
&lt;th&gt;Daily Volume&lt;/th&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;5-10&lt;/td&gt;
&lt;td&gt;Friends, colleagues who will reply&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;15-25&lt;/td&gt;
&lt;td&gt;Warm contacts, newsletter signups&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;30-50&lt;/td&gt;
&lt;td&gt;Mix of warm + cold&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4+&lt;/td&gt;
&lt;td&gt;Scale gradually&lt;/td&gt;
&lt;td&gt;Monitor bounce rates&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The key metric during warm-up: &lt;strong&gt;reply rate&lt;/strong&gt;. Gmail and Outlook track engagement. If people reply to your emails, your sender reputation improves.&lt;/p&gt;

&lt;h2&gt;
  
  
  Content Signals That Trigger Spam Filters
&lt;/h2&gt;

&lt;p&gt;Beyond infrastructure, your email content matters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Avoid link-heavy emails.&lt;/strong&gt; One link maximum in cold outreach. Multiple links = promotional = spam folder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skip HTML templates for cold email.&lt;/strong&gt; Plain text performs better for initial outreach.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't use URL shorteners.&lt;/strong&gt; bit.ly and similar services are heavily associated with spam.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch your text-to-link ratio.&lt;/strong&gt; If your email is 2 sentences and a link, it looks like spam.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Personalization tokens aren't enough.&lt;/strong&gt; "Hi {first_name}" doesn't fool modern filters. Write emails that sound like a human wrote them to a specific person.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Free Tools to Test Your Setup
&lt;/h2&gt;

&lt;p&gt;Before you send your outreach campaign:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://mail-tester.com" rel="noopener noreferrer"&gt;mail-tester.com&lt;/a&gt;&lt;/strong&gt; - Send a test email, get a 10-point score with specific fix recommendations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://mxtoolbox.com" rel="noopener noreferrer"&gt;mxtoolbox.com&lt;/a&gt;&lt;/strong&gt; - Check your DNS records, blacklist status&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Postmaster Tools&lt;/strong&gt; - Monitor your domain reputation with Gmail specifically&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  A Quick Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] SPF record configured (single record, all services included)&lt;/li&gt;
&lt;li&gt;[ ] DKIM signing enabled and verified&lt;/li&gt;
&lt;li&gt;[ ] DMARC policy set (start with p=none)&lt;/li&gt;
&lt;li&gt;[ ] Domain is at least 2 weeks old before sending cold email&lt;/li&gt;
&lt;li&gt;[ ] Warm-up completed with real replies&lt;/li&gt;
&lt;li&gt;[ ] Email content is plain text, one link max&lt;/li&gt;
&lt;li&gt;[ ] Tested with mail-tester.com (score 8+ out of 10)&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;I'm building &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt; — an AI tool that helps founders write cold emails that land in inboxes, not spam folders. If you're doing outbound for your SaaS, I'd love to hear what challenges you're running into with deliverability.&lt;/p&gt;

</description>
      <category>emailstartupsaaswebdev</category>
    </item>
    <item>
      <title>Building a Cold Email Tool: What I Learned About Email Deliverability as a Developer</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Mon, 16 Nov 2026 01:47:42 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/building-a-cold-email-tool-what-i-learned-about-email-deliverability-as-a-developer-a32</link>
      <guid>https://dev.to/peterpark_coldmail/building-a-cold-email-tool-what-i-learned-about-email-deliverability-as-a-developer-a32</guid>
      <description>&lt;p&gt;When I started building &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt;, I assumed the hard part would be generating good email copy with AI. I was wrong. The real challenge was understanding email deliverability.&lt;/p&gt;

&lt;p&gt;Here's what I learned building a cold email tool as a developer, and the technical decisions that shaped the product.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Deliverability Problem
&lt;/h2&gt;

&lt;p&gt;Most developers think sending email is simple: compose a message, hit an SMTP endpoint, done. But cold email operates in a different world from transactional email. Your emails need to land in the primary inbox, not promotions or spam.&lt;/p&gt;

&lt;p&gt;The three pillars of deliverability are:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Authentication: SPF, DKIM, and DMARC
&lt;/h3&gt;

&lt;p&gt;These aren't optional for cold outreach. Here's the quick version:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SPF&lt;/strong&gt; (Sender Policy Framework): A DNS TXT record listing which servers can send email on behalf of your domain&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DKIM&lt;/strong&gt; (DomainKeys Identified Mail): A cryptographic signature added to each email header, verified against a public key in your DNS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DMARC&lt;/strong&gt; (Domain-based Message Authentication): A policy telling receiving servers what to do when SPF or DKIM fail&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If any of these are missing or misconfigured, your emails will get flagged before a human ever sees them.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Domain Reputation
&lt;/h3&gt;

&lt;p&gt;New domains have no reputation. Email providers treat them as suspicious by default. The standard approach is domain warming: start with a small volume and gradually increase over 2-4 weeks.&lt;/p&gt;

&lt;p&gt;Key factors that affect domain reputation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bounce rate (keep it under 2%)&lt;/li&gt;
&lt;li&gt;Spam complaint rate (keep it under 0.1%)&lt;/li&gt;
&lt;li&gt;Engagement signals (opens, replies)&lt;/li&gt;
&lt;li&gt;Sending consistency&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Content Signals
&lt;/h3&gt;

&lt;p&gt;Spam filters analyze email content for patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Link-to-text ratio (too many links = spam)&lt;/li&gt;
&lt;li&gt;Image-to-text ratio&lt;/li&gt;
&lt;li&gt;Certain trigger words and phrases&lt;/li&gt;
&lt;li&gt;HTML complexity (simpler is better for cold email)&lt;/li&gt;
&lt;li&gt;Unsubscribe header presence&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Technical Architecture Decisions
&lt;/h2&gt;

&lt;p&gt;When building getcoldmail.com, I chose Next.js with Vercel for the frontend and API routes. The AI layer uses structured prompts that enforce deliverability best practices at the generation level.&lt;/p&gt;

&lt;p&gt;Instead of just generating "good copy," the AI considers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Email length (under 150 words performs best in cold outreach)&lt;/li&gt;
&lt;li&gt;Single clear CTA per email&lt;/li&gt;
&lt;li&gt;Personalization placeholders that feel natural&lt;/li&gt;
&lt;li&gt;Subject line length (under 60 characters)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Surprised Me
&lt;/h2&gt;

&lt;p&gt;The biggest surprise was how much deliverability depends on factors completely outside the email itself. Your sending infrastructure, your domain age, your IP reputation — these matter more than the perfect subject line.&lt;/p&gt;

&lt;p&gt;For developers building email tools: invest in deliverability education for your users. The best-written email is useless if it never reaches the inbox.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;p&gt;If you're interested in the technical side of email deliverability:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://support.google.com/mail/answer/81126" rel="noopener noreferrer"&gt;Google's Email Sender Guidelines&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://datatracker.ietf.org/doc/html/rfc7208" rel="noopener noreferrer"&gt;RFC 7208 (SPF)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://datatracker.ietf.org/doc/html/rfc6376" rel="noopener noreferrer"&gt;RFC 6376 (DKIM)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dmarc.org/" rel="noopener noreferrer"&gt;DMARC.org&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;I'm building &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt; — an AI-powered cold email generator that helps founders write emails that actually reach the inbox. If you have questions about email deliverability or the technical architecture, drop a comment below.&lt;/p&gt;

</description>
      <category>email</category>
      <category>webdev</category>
      <category>saas</category>
      <category>startup</category>
    </item>
    <item>
      <title>Why Your Cold Emails Land in Spam (And How to Fix It with Proper DNS Setup)</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Fri, 13 Nov 2026 01:15:33 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/why-your-cold-emails-land-in-spam-and-how-to-fix-it-with-proper-dns-setup-39c3</link>
      <guid>https://dev.to/peterpark_coldmail/why-your-cold-emails-land-in-spam-and-how-to-fix-it-with-proper-dns-setup-39c3</guid>
      <description>&lt;p&gt;Cold email deliverability is the single biggest bottleneck for SaaS founders doing outbound. You can write the perfect email, target the right person, and still end up in spam.&lt;/p&gt;

&lt;p&gt;Here's a practical, developer-friendly guide to fixing that.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Three DNS Records You Need
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. SPF (Sender Policy Framework)
&lt;/h3&gt;

&lt;p&gt;SPF tells receiving mail servers which IP addresses are allowed to send email on behalf of your domain.&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 include:sendgrid.net -all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Key points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;code&gt;-all&lt;/code&gt; (hard fail) instead of &lt;code&gt;~all&lt;/code&gt; (soft fail) for stricter enforcement&lt;/li&gt;
&lt;li&gt;Keep your SPF record under 10 DNS lookups (this is a hard limit)&lt;/li&gt;
&lt;li&gt;Each &lt;code&gt;include:&lt;/code&gt; counts as a lookup - consolidate where possible&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. DKIM (DomainKeys Identified Mail)
&lt;/h3&gt;

&lt;p&gt;DKIM adds a cryptographic signature to your emails. The receiving server checks this signature against a public key published in your DNS.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;selector._domainkey.yourdomain.com  TXT  "v=DKIM1; k=rsa; p=YOUR_PUBLIC_KEY"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Most email providers generate the DKIM key pair for you. You just need to add the TXT record they give you.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. DMARC (Domain-based Message Authentication)
&lt;/h3&gt;

&lt;p&gt;DMARC ties SPF and DKIM together and tells receivers what to do when authentication fails.&lt;/p&gt;

&lt;p&gt;Start with monitoring mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;_dmarc.yourdomain.com  TXT  "v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you're confident everything is aligned, move to enforcement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;_dmarc.yourdomain.com  TXT  "v=DMARC1; p=reject; rua=mailto:dmarc@yourdomain.com"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Beyond DNS: Warm-Up Basics
&lt;/h2&gt;

&lt;p&gt;Even with perfect DNS, a brand-new domain sending 500 emails on day one will get flagged. Here is a reasonable warm-up schedule:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Week&lt;/th&gt;
&lt;th&gt;Daily Volume&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;5-10&lt;/td&gt;
&lt;td&gt;Send to known contacts who will reply&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;15-25&lt;/td&gt;
&lt;td&gt;Mix of warm contacts and cold&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;30-50&lt;/td&gt;
&lt;td&gt;Gradually increase cold ratio&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4+&lt;/td&gt;
&lt;td&gt;Scale based on bounce/spam rates&lt;/td&gt;
&lt;td&gt;Monitor closely&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Quick Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;SPF record published with &lt;code&gt;-all&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;DKIM signing enabled and DNS record verified&lt;/li&gt;
&lt;li&gt;DMARC set to at least &lt;code&gt;p=none&lt;/code&gt; with reporting&lt;/li&gt;
&lt;li&gt;Domain is at least 2 weeks old before sending cold&lt;/li&gt;
&lt;li&gt;Warm-up period of 3-4 weeks before full volume&lt;/li&gt;
&lt;li&gt;Bounce rate staying under 3%&lt;/li&gt;
&lt;li&gt;Unsubscribe link included in every email&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tools to Verify Your Setup
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://mxtoolbox.com" rel="noopener noreferrer"&gt;MXToolbox&lt;/a&gt; - check SPF, DKIM, DMARC records&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.mail-tester.com" rel="noopener noreferrer"&gt;Mail Tester&lt;/a&gt; - send a test email and get a deliverability score&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://postmaster.google.com" rel="noopener noreferrer"&gt;Google Postmaster Tools&lt;/a&gt; - monitor your domain reputation with Gmail&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;We built &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt; to help founders generate personalized cold emails that follow deliverability best practices. The technical setup above is the foundation, but the content of your email matters just as much.&lt;/p&gt;

&lt;p&gt;If you have questions about email authentication or deliverability, drop them in the comments.&lt;/p&gt;

</description>
      <category>startup</category>
      <category>saas</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Set Up SPF, DKIM, and DMARC for Cold Email in 2026: A Developer's Guide</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Wed, 11 Nov 2026 03:52:33 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/how-to-set-up-spf-dkim-and-dmarc-for-cold-email-in-2026-a-developers-guide-459c</link>
      <guid>https://dev.to/peterpark_coldmail/how-to-set-up-spf-dkim-and-dmarc-for-cold-email-in-2026-a-developers-guide-459c</guid>
      <description>&lt;p&gt;If you're building a SaaS and plan to send emails to users — whether transactional, marketing, or outbound — email authentication is non-negotiable. Without proper SPF, DKIM, and DMARC records, your emails will land in spam or get rejected entirely.&lt;/p&gt;

&lt;p&gt;Here's a practical, no-fluff guide to setting all three up correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;Email providers like Gmail and Outlook use authentication records to decide whether your email is legitimate. If you skip this step:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your emails go to spam&lt;/li&gt;
&lt;li&gt;Your domain reputation drops&lt;/li&gt;
&lt;li&gt;Automated systems may block your domain entirely&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This applies whether you're sending 10 emails or 10,000.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. SPF (Sender Policy Framework)
&lt;/h2&gt;

&lt;p&gt;SPF tells receiving servers which IP addresses are allowed to send email on behalf of your domain.&lt;/p&gt;

&lt;h3&gt;
  
  
  Setup
&lt;/h3&gt;

&lt;p&gt;Add a TXT record to your domain's DNS:&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 include:sendgrid.net ~all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the &lt;code&gt;include:&lt;/code&gt; values with your actual email providers. Common ones:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;SPF Include&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Google Workspace&lt;/td&gt;
&lt;td&gt;&lt;code&gt;_spf.google.com&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SendGrid&lt;/td&gt;
&lt;td&gt;&lt;code&gt;sendgrid.net&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mailgun&lt;/td&gt;
&lt;td&gt;&lt;code&gt;mailgun.org&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon SES&lt;/td&gt;
&lt;td&gt;&lt;code&gt;amazonses.com&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Common Mistakes
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Having multiple SPF records (only one is allowed per domain)&lt;/li&gt;
&lt;li&gt;Using &lt;code&gt;+all&lt;/code&gt; instead of &lt;code&gt;~all&lt;/code&gt; or &lt;code&gt;-all&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Exceeding the 10 DNS lookup limit&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. DKIM (DomainKeys Identified Mail)
&lt;/h2&gt;

&lt;p&gt;DKIM adds a cryptographic signature to your outgoing emails. The receiving server checks this signature against a public key in your DNS.&lt;/p&gt;

&lt;h3&gt;
  
  
  Setup
&lt;/h3&gt;

&lt;p&gt;Your email provider generates a DKIM key pair. You add the public key as a TXT record:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;selector._domainkey.yourdomain.com TXT "v=DKIM1; k=rsa; p=MIIBIjANBg..."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Most providers (Google Workspace, SendGrid, etc.) walk you through this in their dashboard. The key thing is to make sure the selector matches what your provider expects.&lt;/p&gt;

&lt;h3&gt;
  
  
  Verification
&lt;/h3&gt;

&lt;p&gt;Send a test email to a Gmail account and check the email headers. Look for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dkim=pass header.d=yourdomain.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. DMARC (Domain-based Message Authentication, Reporting &amp;amp; Conformance)
&lt;/h2&gt;

&lt;p&gt;DMARC ties SPF and DKIM together and tells receiving servers what to do when authentication fails.&lt;/p&gt;

&lt;h3&gt;
  
  
  Setup
&lt;/h3&gt;

&lt;p&gt;Add a TXT record at &lt;code&gt;_dmarc.yourdomain.com&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com; pct=100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Policy Levels
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Policy&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;p=none&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Monitor only (start here)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;p=quarantine&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Send failures to spam&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;p=reject&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Block failures entirely&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Start with &lt;code&gt;p=none&lt;/code&gt; to collect reports, then gradually move to &lt;code&gt;quarantine&lt;/code&gt; and eventually &lt;code&gt;reject&lt;/code&gt; once you're confident your legitimate emails are passing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verification Tools
&lt;/h2&gt;

&lt;p&gt;Use these free tools to check your setup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MXToolbox&lt;/strong&gt; — check SPF, DKIM, DMARC records&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Admin Toolbox&lt;/strong&gt; — check MX records&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mail-tester.com&lt;/strong&gt; — send a test email and get a score&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Real-World Impact
&lt;/h2&gt;

&lt;p&gt;Proper email authentication directly affects whether your emails reach inboxes. If you're building outbound features or any kind of email-sending functionality, this is foundational infrastructure.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt; to help founders write better cold emails, and the number one question that comes up is deliverability. The answer almost always starts with "Did you set up SPF, DKIM, and DMARC?"&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] One SPF record with all sending sources&lt;/li&gt;
&lt;li&gt;[ ] DKIM enabled for each sending service&lt;/li&gt;
&lt;li&gt;[ ] DMARC record starting with p=none&lt;/li&gt;
&lt;li&gt;[ ] Test email headers showing pass for all three&lt;/li&gt;
&lt;li&gt;[ ] Monitor DMARC reports for 2-4 weeks before tightening policy&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;If you're launching a product that sends email, get authentication right from day one. It's much harder to fix a damaged domain reputation than to set it up correctly from the start.&lt;/p&gt;

&lt;p&gt;Questions? Drop them in the comments — happy to help debug specific setups.&lt;/p&gt;

</description>
      <category>startup</category>
    </item>
    <item>
      <title>The Cold Email Deliverability Checklist Every SaaS Founder Needs in 2026</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Mon, 09 Nov 2026 01:07:49 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/the-cold-email-deliverability-checklist-every-saas-founder-needs-in-2026-1iha</link>
      <guid>https://dev.to/peterpark_coldmail/the-cold-email-deliverability-checklist-every-saas-founder-needs-in-2026-1iha</guid>
      <description>&lt;p&gt;You built a great product. You wrote compelling outreach emails. You hit send on 200 emails.&lt;/p&gt;

&lt;p&gt;And 40 of them never reached anyone's inbox.&lt;/p&gt;

&lt;p&gt;This is the reality for most SaaS founders doing cold outreach in 2026. Email providers like Google and Microsoft have tightened their filtering dramatically, and if your email infrastructure isn't set up correctly, your messages go straight to spam — no matter how good the copy is.&lt;/p&gt;

&lt;p&gt;Here's a practical checklist to make sure your emails actually land where they're supposed to.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Set Up SPF (Sender Policy Framework)
&lt;/h2&gt;

&lt;p&gt;SPF tells receiving mail servers which IP addresses are authorized to send email on behalf of your domain.&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 include:sendgrid.net ~all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Key points:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add a TXT record to your domain's DNS&lt;/li&gt;
&lt;li&gt;Include every service that sends email for you (Google Workspace, SendGrid, Mailchimp, etc.)&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;~all&lt;/code&gt; (soft fail) or &lt;code&gt;-all&lt;/code&gt; (hard fail) at the end&lt;/li&gt;
&lt;li&gt;Don't exceed 10 DNS lookups — SPF has a lookup limit&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Configure DKIM (DomainKeys Identified Mail)
&lt;/h2&gt;

&lt;p&gt;DKIM adds a cryptographic signature to your emails that proves they weren't tampered with in transit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setup steps:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Generate a DKIM key pair (most email providers do this for you)&lt;/li&gt;
&lt;li&gt;Add the public key as a TXT record in your DNS&lt;/li&gt;
&lt;li&gt;Your email provider signs outgoing emails with the private key&lt;/li&gt;
&lt;li&gt;Receiving servers verify the signature against your DNS record&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  3. Publish a DMARC Policy
&lt;/h2&gt;

&lt;p&gt;DMARC ties SPF and DKIM together and tells receiving servers what to do when authentication fails.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@yourdomain.com; pct=100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Start with &lt;code&gt;p=none&lt;/code&gt;&lt;/strong&gt; to monitor without blocking, then move to &lt;code&gt;p=quarantine&lt;/code&gt; or &lt;code&gt;p=reject&lt;/code&gt; once you're confident everything is aligned.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Warm Up New Domains and Mailboxes
&lt;/h2&gt;

&lt;p&gt;Sending 500 emails from a brand-new domain on day one is the fastest way to get blacklisted.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Warm-up schedule:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Week 1: 10-20 emails/day to engaged contacts&lt;/li&gt;
&lt;li&gt;Week 2: 30-50 emails/day&lt;/li&gt;
&lt;li&gt;Week 3: 50-100 emails/day&lt;/li&gt;
&lt;li&gt;Week 4+: Gradually scale to your target volume&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use a separate domain for cold outreach (e.g., &lt;code&gt;getcompany.com&lt;/code&gt; instead of &lt;code&gt;company.com&lt;/code&gt;) to protect your primary domain's reputation.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Monitor Your Sender Reputation
&lt;/h2&gt;

&lt;p&gt;Use these free tools regularly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Google Postmaster Tools&lt;/strong&gt; — shows your domain reputation with Gmail&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MXToolbox&lt;/strong&gt; — checks blacklists and DNS configuration&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mail Tester&lt;/strong&gt; (mail-tester.com) — scores individual emails on spam likelihood&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. Keep Your Lists Clean
&lt;/h2&gt;

&lt;p&gt;High bounce rates destroy sender reputation fast.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Remove hard bounces immediately&lt;/li&gt;
&lt;li&gt;Re-verify email lists every 30 days&lt;/li&gt;
&lt;li&gt;Use email verification services before sending to new lists&lt;/li&gt;
&lt;li&gt;Aim for a bounce rate under 2%&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7. Write Like a Human
&lt;/h2&gt;

&lt;p&gt;Spam filters in 2026 are sophisticated enough to detect templated, mass-produced emails. A few patterns that trigger filters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ALL CAPS in subject lines&lt;/li&gt;
&lt;li&gt;Excessive exclamation marks!!!&lt;/li&gt;
&lt;li&gt;Image-heavy emails with minimal text&lt;/li&gt;
&lt;li&gt;URL shorteners (bit.ly, etc.)&lt;/li&gt;
&lt;li&gt;Too many links in a single email&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The best-performing cold emails tend to be short, plain-text, and conversational.&lt;/p&gt;

&lt;h2&gt;
  
  
  Putting It All Together
&lt;/h2&gt;

&lt;p&gt;Before you send your next outreach campaign, run through this checklist:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] SPF record configured and under 10 lookups&lt;/li&gt;
&lt;li&gt;[ ] DKIM signing enabled and verified&lt;/li&gt;
&lt;li&gt;[ ] DMARC policy published (at least &lt;code&gt;p=none&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;[ ] Sending domain warmed up (2+ weeks of gradual volume)&lt;/li&gt;
&lt;li&gt;[ ] Google Postmaster Tools connected&lt;/li&gt;
&lt;li&gt;[ ] Email list verified within last 30 days&lt;/li&gt;
&lt;li&gt;[ ] Test email scores 9+ on Mail Tester&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Getting emails delivered is a prerequisite, not a bonus. No amount of copywriting skill matters if your emails never reach the inbox.&lt;/p&gt;




&lt;p&gt;If you're looking for a tool that helps with cold email creation while keeping deliverability in mind, check out &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt; — it's designed to help SaaS founders write effective cold emails without the guesswork.&lt;/p&gt;

&lt;p&gt;What deliverability issues have you run into? Drop them in the comments.&lt;/p&gt;

</description>
      <category>emailsaasstartupproductivity</category>
    </item>
    <item>
      <title>Email Authentication 101: SPF, DKIM, and DMARC Explained for SaaS Founders</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Fri, 06 Nov 2026 02:27:11 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/email-authentication-101-spf-dkim-and-dmarc-explained-for-saas-founders-12j9</link>
      <guid>https://dev.to/peterpark_coldmail/email-authentication-101-spf-dkim-and-dmarc-explained-for-saas-founders-12j9</guid>
      <description>&lt;p&gt;If you're a SaaS founder sending transactional or outbound emails, there's a good chance your messages are landing in spam folders without you even knowing it. The culprit? Missing or misconfigured email authentication records.&lt;/p&gt;

&lt;p&gt;In this guide, I'll break down the three pillars of email authentication: &lt;strong&gt;SPF&lt;/strong&gt;, &lt;strong&gt;DKIM&lt;/strong&gt;, and &lt;strong&gt;DMARC&lt;/strong&gt;. No fluff, just what you need to know as a developer or technical founder to get your domain's email reputation right from day one.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Email Authentication Matters
&lt;/h2&gt;

&lt;p&gt;Every time your server sends an email, the receiving mail server asks three questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Is this sender allowed to send on behalf of this domain?&lt;/strong&gt; (SPF)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Was this message tampered with in transit?&lt;/strong&gt; (DKIM)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What should I do if SPF or DKIM fails?&lt;/strong&gt; (DMARC)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you can't answer these questions with properly configured DNS records, inbox providers like Gmail, Outlook, and Yahoo are increasingly likely to reject or quarantine your messages.&lt;/p&gt;

&lt;p&gt;According to Google's 2024 sender guidelines, bulk senders (5,000+ messages/day to Gmail) are now &lt;strong&gt;required&lt;/strong&gt; to have SPF, DKIM, and DMARC configured. Yahoo has adopted similar requirements. This isn't optional anymore.&lt;/p&gt;




&lt;h2&gt;
  
  
  SPF: Sender Policy Framework
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What It Does
&lt;/h3&gt;

&lt;p&gt;SPF lets you declare which mail servers are authorized to send email on behalf of your domain. It's a DNS TXT record that receiving servers check against the IP address of the sending server.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to Set It Up
&lt;/h3&gt;

&lt;p&gt;Add a TXT record to your domain's DNS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Type:  TXT
Host:  @
Value: v=spf1 include:_spf.google.com include:sendgrid.net ~all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Breaking this down:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;v=spf1&lt;/code&gt; declares this is an SPF record&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;include:_spf.google.com&lt;/code&gt; authorizes Google Workspace servers&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;include:sendgrid.net&lt;/code&gt; authorizes SendGrid's servers&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;~all&lt;/code&gt; soft-fails anything not listed (use &lt;code&gt;-all&lt;/code&gt; for hard-fail once you're confident)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Key Constraints
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;You can only have &lt;strong&gt;one SPF record&lt;/strong&gt; per domain. Multiple records will cause validation failures.&lt;/li&gt;
&lt;li&gt;SPF has a &lt;strong&gt;10 DNS lookup limit&lt;/strong&gt;. Each &lt;code&gt;include:&lt;/code&gt; counts as a lookup. Nested includes count too. Exceeding this limit silently breaks your SPF.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  DKIM: DomainKeys Identified Mail
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What It Does
&lt;/h3&gt;

&lt;p&gt;DKIM adds a cryptographic signature to every outgoing email. The receiving server can verify this signature using a public key published in your DNS. This proves the message hasn't been altered in transit and that it originated from an authorized sender.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to Set It Up
&lt;/h3&gt;

&lt;p&gt;Your email service provider (ESP) will generate a DKIM key pair. You publish the public key as a DNS TXT record:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Type:  TXT
Host:  selector1._domainkey
Value: v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFA...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Breaking this down:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;selector1._domainkey&lt;/code&gt; is the selector name (provided by your ESP) plus the fixed &lt;code&gt;_domainkey&lt;/code&gt; suffix&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;v=DKIM1&lt;/code&gt; is the DKIM version&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;k=rsa&lt;/code&gt; is the key type&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;p=...&lt;/code&gt; is your public key (the long base64 string your ESP gives you)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How to Verify
&lt;/h3&gt;

&lt;p&gt;Send a test email to a Gmail address and open the original message headers. Look for:&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="nt"&gt;Authentication-Results&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="na"&gt;
  dkim=pass header.d=yourdomain.com&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also use command-line tools:&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 selector1._domainkey.yourdomain.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  DMARC: Domain-based Message Authentication, Reporting &amp;amp; Conformance
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What It Does
&lt;/h3&gt;

&lt;p&gt;DMARC ties SPF and DKIM together with a policy. It tells receiving servers what to do when authentication fails, and where to send reports about it.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to Set It Up
&lt;/h3&gt;

&lt;p&gt;Add a TXT record:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Type:  TXT
Host:  _dmarc
Value: v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com; pct=100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Breaking this down:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;v=DMARC1&lt;/code&gt; is the DMARC version&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;p=none&lt;/code&gt; is the policy (monitor only, no action on failures)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;rua=mailto:...&lt;/code&gt; is where aggregate reports get sent&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;pct=100&lt;/code&gt; applies the policy to 100% of messages&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Three Policy Levels
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Policy&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;When to Use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;p=none&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Monitor only, deliver everything&lt;/td&gt;
&lt;td&gt;Starting out, collecting data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;p=quarantine&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Send failures to spam&lt;/td&gt;
&lt;td&gt;After reviewing reports, confident in setup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;p=reject&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Block failures entirely&lt;/td&gt;
&lt;td&gt;Full confidence, all legitimate sources covered&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Recommended rollout:&lt;/strong&gt; Start with &lt;code&gt;p=none&lt;/code&gt; for 2-4 weeks while reviewing reports. Move to &lt;code&gt;p=quarantine&lt;/code&gt;, then &lt;code&gt;p=reject&lt;/code&gt; once you're sure all legitimate sending sources are authenticated.&lt;/p&gt;




&lt;h2&gt;
  
  
  Common Mistakes to Avoid
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Multiple SPF Records
&lt;/h3&gt;

&lt;p&gt;Adding a second SPF TXT record instead of merging &lt;code&gt;include:&lt;/code&gt; statements into one record. DNS returns both, and validators may reject them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wrong:&lt;/strong&gt;&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
v=spf1 include:sendgrid.net ~all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Right:&lt;/strong&gt;&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 include:sendgrid.net ~all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Exceeding the SPF Lookup Limit
&lt;/h3&gt;

&lt;p&gt;Every &lt;code&gt;include:&lt;/code&gt;, &lt;code&gt;a&lt;/code&gt;, &lt;code&gt;mx&lt;/code&gt;, and &lt;code&gt;redirect&lt;/code&gt; mechanism counts toward the 10-lookup cap. If you use multiple ESPs, CRM tools, and support desk platforms, you can easily exceed this. Use an SPF flattening tool or consolidate your sending infrastructure.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Skipping DMARC Entirely
&lt;/h3&gt;

&lt;p&gt;SPF and DKIM alone aren't enough. Without DMARC, there's no policy for what happens on failure, and you won't receive reporting data. Even &lt;code&gt;p=none&lt;/code&gt; is better than no DMARC record at all.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Setting p=reject Too Early
&lt;/h3&gt;

&lt;p&gt;Jumping straight to a reject policy before auditing all sending sources (marketing tools, transactional email, CRM, support platforms) will cause legitimate emails to bounce.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Forgetting Subdomains
&lt;/h3&gt;

&lt;p&gt;If you send from &lt;code&gt;mail.yourdomain.com&lt;/code&gt; or &lt;code&gt;news.yourdomain.com&lt;/code&gt;, those subdomains need their own SPF and DKIM records. DMARC on the root domain can cover subdomains with the &lt;code&gt;sp=&lt;/code&gt; tag, but SPF and DKIM don't inherit automatically.&lt;/p&gt;




&lt;h2&gt;
  
  
  Quick Verification Checklist
&lt;/h2&gt;

&lt;p&gt;Once you've set everything up, validate your configuration:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;MXToolbox&lt;/strong&gt; (mxtoolbox.com/spf.aspx) for SPF syntax and lookup count&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mail-tester&lt;/strong&gt; (mail-tester.com) for a test email deliverability score&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gmail headers&lt;/strong&gt; by sending to Gmail, clicking "Show original," and checking Authentication-Results&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DMARC reports&lt;/strong&gt; by waiting 24-48 hours after setup and reviewing aggregate XML reports at your &lt;code&gt;rua&lt;/code&gt; address&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Simplifying the Setup
&lt;/h2&gt;

&lt;p&gt;If you're building a SaaS that sends cold outreach or transactional email, getting authentication right is table stakes. But it's also the kind of infrastructure work that eats into time you'd rather spend on product.&lt;/p&gt;

&lt;p&gt;That's one of the reasons I built &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMail&lt;/a&gt;. It handles email infrastructure concerns like domain warm-up guidance and deliverability so founders can focus on writing emails that actually convert, rather than debugging DNS records.&lt;/p&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Protocol&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Record Type&lt;/th&gt;
&lt;th&gt;Key Thing to Remember&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SPF&lt;/td&gt;
&lt;td&gt;Authorize sending servers&lt;/td&gt;
&lt;td&gt;TXT on &lt;code&gt;@&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;One record only, 10 lookup limit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DKIM&lt;/td&gt;
&lt;td&gt;Verify message integrity&lt;/td&gt;
&lt;td&gt;TXT on &lt;code&gt;selector._domainkey&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Get keys from your ESP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DMARC&lt;/td&gt;
&lt;td&gt;Set failure policy + reporting&lt;/td&gt;
&lt;td&gt;TXT on &lt;code&gt;_dmarc&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Start with &lt;code&gt;p=none&lt;/code&gt;, graduate up&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Set up all three. Monitor your DMARC reports. Graduate your policy. Your deliverability will thank you.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Have questions about email authentication or cold email infrastructure? Drop a comment below.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>email</category>
      <category>saas</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Build a Prospect Research Pipeline for Cold Email</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Thu, 05 Nov 2026 01:04:16 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/how-to-build-a-prospect-research-pipeline-for-cold-email-ep9</link>
      <guid>https://dev.to/peterpark_coldmail/how-to-build-a-prospect-research-pipeline-for-cold-email-ep9</guid>
      <description>&lt;p&gt;Cold email gets a bad reputation, and honestly, most of it is deserved. The biggest reason? People skip the research step entirely.&lt;/p&gt;

&lt;p&gt;Sending a well-researched, relevant email to the right person beats blasting hundreds of generic templates every time. In this post, I'll walk through a practical prospect research pipeline that any developer can build or adapt.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem with "Spray and Pray"
&lt;/h2&gt;

&lt;p&gt;Most cold email workflows look like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Buy a list of emails&lt;/li&gt;
&lt;li&gt;Write one template&lt;/li&gt;
&lt;li&gt;Send to everyone&lt;/li&gt;
&lt;li&gt;Wonder why the reply rate is near zero&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The missing step is &lt;strong&gt;research&lt;/strong&gt;. Understanding who you're emailing and why they should care is what separates effective outreach from spam.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Simple Research Pipeline
&lt;/h2&gt;

&lt;p&gt;Here's a framework you can implement:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Define Your Ideal Customer Profile (ICP)
&lt;/h3&gt;

&lt;p&gt;Before writing a single email, document:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Industry&lt;/strong&gt;: Which sectors benefit most from your product?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Company size&lt;/strong&gt;: Startup? Mid-market? Enterprise?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Role&lt;/strong&gt;: Who is the actual decision-maker?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pain point&lt;/strong&gt;: What specific problem does your product solve for them?&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 2: Find and Validate Contacts
&lt;/h3&gt;

&lt;p&gt;Use publicly available data sources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Company websites (team pages, about pages)&lt;/li&gt;
&lt;li&gt;LinkedIn profiles (public information)&lt;/li&gt;
&lt;li&gt;Business directories and databases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Always validate email addresses before sending. A high bounce rate damages your sender reputation and can get your domain blacklisted.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Research Each Prospect
&lt;/h3&gt;

&lt;p&gt;For each contact, spend 2-3 minutes gathering:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Their recent posts or articles&lt;/li&gt;
&lt;li&gt;Company news or announcements&lt;/li&gt;
&lt;li&gt;Shared connections or interests&lt;/li&gt;
&lt;li&gt;Specific challenges their company might face&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This research becomes your personalization layer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Write Contextual Emails
&lt;/h3&gt;

&lt;p&gt;Structure your email around what you learned:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Subject: [Something specific to their situation]

Hi [Name],

[Reference something specific - a post they wrote, a company milestone, etc.]

[Connect that to the problem you solve - one sentence]

[Your value proposition - keep it brief]

[Clear, low-friction CTA]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 5: Track and Iterate
&lt;/h3&gt;

&lt;p&gt;Monitor these metrics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bounce rate&lt;/strong&gt;: Should be under 2%. Higher means your data is bad.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open rate&lt;/strong&gt;: Subject line effectiveness indicator.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reply rate&lt;/strong&gt;: Content relevance indicator.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Positive reply rate&lt;/strong&gt;: The metric that actually matters.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Technical Implementation Notes
&lt;/h2&gt;

&lt;p&gt;If you're building this as a developer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Email validation&lt;/strong&gt;: Use DNS MX record checks + SMTP verification. Libraries like &lt;code&gt;email-validator&lt;/code&gt; handle the basics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rate limiting&lt;/strong&gt;: Respect sending limits. Major providers flag accounts that spike volume suddenly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authentication&lt;/strong&gt;: Set up SPF, DKIM, and DMARC records. These are non-negotiable for deliverability.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Warm-up&lt;/strong&gt;: New domains need gradual volume increases over 2-4 weeks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why We Built ColdMailAI
&lt;/h2&gt;

&lt;p&gt;This research pipeline is exactly the thinking behind &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt;. We wanted to make prospect research and personalized email generation accessible without requiring a massive sales team or expensive tools.&lt;/p&gt;

&lt;p&gt;The tool helps you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generate research-backed email drafts&lt;/li&gt;
&lt;li&gt;Maintain personalization at scale&lt;/li&gt;
&lt;li&gt;Follow deliverability best practices automatically&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're interested, check it out at &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;getcoldmail.com&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Research before you write. Always.&lt;/li&gt;
&lt;li&gt;Quality over quantity. 50 well-researched emails outperform 500 generic ones.&lt;/li&gt;
&lt;li&gt;Validate everything. Bad data costs you more than no data.&lt;/li&gt;
&lt;li&gt;Track metrics and iterate. What works changes over time.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Cold email done right is just helpful communication between people who might benefit from working together. The research step is what makes it helpful instead of annoying.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;What's your approach to cold email research? Drop your tips in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>emailsaaswebdevproductivity</category>
    </item>
    <item>
      <title>Email Deliverability Checklist for Developers: SPF, DKIM, DMARC, and Beyond</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Wed, 04 Nov 2026 01:58:13 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/email-deliverability-checklist-for-developers-spf-dkim-dmarc-and-beyond-2cc3</link>
      <guid>https://dev.to/peterpark_coldmail/email-deliverability-checklist-for-developers-spf-dkim-dmarc-and-beyond-2cc3</guid>
      <description>&lt;p&gt;If you're building any tool that sends email — whether it's transactional notifications, marketing campaigns, or cold outreach — deliverability is the invisible layer that determines whether your emails actually reach inboxes.&lt;/p&gt;

&lt;p&gt;Here's a practical checklist for developers who want to get email delivery right from the start.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Set Up SPF (Sender Policy Framework)
&lt;/h2&gt;

&lt;p&gt;SPF tells receiving mail servers which IP addresses are authorized to send email on behalf of your domain.&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 include:sendgrid.net ~all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Key points:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add a TXT record to your domain's DNS&lt;/li&gt;
&lt;li&gt;Include all services that send email for you (ESP, transactional provider, etc.)&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;~all&lt;/code&gt; (soft fail) or &lt;code&gt;-all&lt;/code&gt; (hard fail) at the end&lt;/li&gt;
&lt;li&gt;Keep your SPF record under 10 DNS lookups — exceeding this silently breaks validation&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Configure DKIM (DomainKeys Identified Mail)
&lt;/h2&gt;

&lt;p&gt;DKIM adds a cryptographic signature to your email headers, letting receivers verify the message wasn't altered in transit.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;selector._domainkey.yourdomain.com  TXT  "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3..."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Key points:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generate a public/private key pair (most ESPs provide this)&lt;/li&gt;
&lt;li&gt;Publish the public key as a DNS TXT record&lt;/li&gt;
&lt;li&gt;The private key signs outgoing messages automatically&lt;/li&gt;
&lt;li&gt;Rotate keys periodically (every 6-12 months is reasonable)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Publish a DMARC Policy
&lt;/h2&gt;

&lt;p&gt;DMARC ties SPF and DKIM together and tells receivers what to do when authentication fails.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;_dmarc.yourdomain.com  TXT  "v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@yourdomain.com; pct=100"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Policy options:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;p=none&lt;/code&gt; — Monitor only (start here)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;p=quarantine&lt;/code&gt; — Send failures to spam&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;p=reject&lt;/code&gt; — Block failures entirely&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Start with &lt;code&gt;p=none&lt;/code&gt; to collect reports, then gradually tighten.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Warm Up New Domains and IPs
&lt;/h2&gt;

&lt;p&gt;Sending a large volume from a brand new domain or IP is the fastest way to get flagged as spam.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Warming strategy:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Week 1: 20-50 emails/day to engaged recipients&lt;/li&gt;
&lt;li&gt;Week 2: Double the volume&lt;/li&gt;
&lt;li&gt;Week 3-4: Continue scaling gradually&lt;/li&gt;
&lt;li&gt;Monitor bounce rates and spam complaints at each step&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Monitor Your Sender Reputation
&lt;/h2&gt;

&lt;p&gt;Use free tools to check your domain and IP reputation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Google Postmaster Tools&lt;/strong&gt; — Shows domain reputation, spam rate, authentication results&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MXToolbox&lt;/strong&gt; — DNS record validation and blacklist monitoring&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mail-tester.com&lt;/strong&gt; — Send a test email and get a deliverability score&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. Handle Bounces and Complaints
&lt;/h2&gt;

&lt;p&gt;Hard bounces (invalid addresses) and spam complaints directly damage your sender reputation.&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;// Example: webhook handler for bounce processing&lt;/span&gt;
&lt;span class="nx"&gt;app&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="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/webhook/bounce&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&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="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;bounceType&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&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="nx"&gt;bounceType&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hard&lt;/span&gt;&lt;span class="dl"&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;// Immediately remove from all lists&lt;/span&gt;
    &lt;span class="nf"&gt;removeFromMailingList&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;email&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="nx"&gt;bounceType&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;soft&lt;/span&gt;&lt;span class="dl"&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;// Retry up to 3 times, then remove&lt;/span&gt;
    &lt;span class="nf"&gt;incrementRetryCount&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;email&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendStatus&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Content Best Practices
&lt;/h2&gt;

&lt;p&gt;Even with perfect authentication, poor content triggers spam filters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Avoid ALL CAPS subjects and excessive punctuation&lt;/li&gt;
&lt;li&gt;Include a plain-text version alongside HTML&lt;/li&gt;
&lt;li&gt;Keep your text-to-image ratio reasonable (not image-only emails)&lt;/li&gt;
&lt;li&gt;Always include an unsubscribe link&lt;/li&gt;
&lt;li&gt;Use a consistent "From" name and address&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why This Matters for SaaS Builders
&lt;/h2&gt;

&lt;p&gt;When we built &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMailAI&lt;/a&gt;, one of the core design decisions was to generate emails that follow these deliverability principles by default — proper structure, natural language patterns, and no spam trigger words. The tool doesn't send emails itself; it generates content designed to work well with whatever sending infrastructure you already have.&lt;/p&gt;

&lt;p&gt;Deliverability isn't a one-time setup. It's an ongoing practice. Get the foundation right, and your emails will actually reach the people you're writing to.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Resources:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://postmaster.google.com/" rel="noopener noreferrer"&gt;Google Postmaster Tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mxtoolbox.com/SuperTool.aspx" rel="noopener noreferrer"&gt;MXToolbox SuperTool&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.dmarcanalyzer.com/" rel="noopener noreferrer"&gt;DMARC Analyzer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>emailwebdevsaastutorial</category>
    </item>
    <item>
      <title>The Anatomy of a High-Converting Cold Email Subject Line: A Technical Breakdown</title>
      <dc:creator>Peter Park</dc:creator>
      <pubDate>Tue, 03 Nov 2026 01:16:17 +0000</pubDate>
      <link>https://dev.to/peterpark_coldmail/the-anatomy-of-a-high-converting-cold-email-subject-line-a-technical-breakdown-4ep7</link>
      <guid>https://dev.to/peterpark_coldmail/the-anatomy-of-a-high-converting-cold-email-subject-line-a-technical-breakdown-4ep7</guid>
      <description>&lt;p&gt;If you've ever sent cold emails, you know the feeling: you spend an hour crafting the perfect pitch, hit send, and... crickets. The problem usually isn't your email body. It's your subject line.&lt;/p&gt;

&lt;p&gt;Your subject line is the gatekeeper. If it doesn't earn the open, nothing else matters. Let's break down the technical anatomy of what makes cold email subject lines actually work, with frameworks you can apply today.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 3-Second Window
&lt;/h2&gt;

&lt;p&gt;Email clients display subject lines differently. Gmail on desktop shows roughly 70 characters. On mobile, you get about 35-40. Outlook varies depending on the preview pane. &lt;/p&gt;

&lt;p&gt;This means your most important words need to land in the first 35 characters. Anything after that is a bonus, not a requirement.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Character limits by client (approximate visible characters)
Gmail Desktop:   ~70 chars
Gmail Mobile:    ~35-40 chars
Outlook Desktop: ~55-60 chars
Apple Mail:      ~50-60 chars
Yahoo:           ~45 chars
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Takeaway:&lt;/strong&gt; Front-load your value proposition. If your subject line reads well when cut at 40 characters, it works everywhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  Framework 1: The Relevance Hook
&lt;/h2&gt;

&lt;p&gt;The most reliable cold email subject lines pass what I call the "why me, why now" test. The recipient should immediately understand why they're getting this email.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pattern:&lt;/strong&gt; &lt;code&gt;[Specific Reference] + [Value Hint]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Quick question about your checkout flow"&lt;/li&gt;
&lt;li&gt;"Idea for [Company]'s onboarding sequence"&lt;/li&gt;
&lt;li&gt;"Noticed your team is hiring SDRs"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What makes these work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;They reference something &lt;strong&gt;specific&lt;/strong&gt; about the recipient&lt;/li&gt;
&lt;li&gt;They imply you did your research&lt;/li&gt;
&lt;li&gt;They don't try to sell anything in the subject line itself&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Framework 2: The Curiosity Gap
&lt;/h2&gt;

&lt;p&gt;This technique creates a small gap between what the recipient knows and what they want to know. It's not clickbait. It's selective omission.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pattern:&lt;/strong&gt; &lt;code&gt;[Partial Information] + [Implied Completion Inside]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Two things I noticed on your site"&lt;/li&gt;
&lt;li&gt;"A thought about your recent launch"&lt;/li&gt;
&lt;li&gt;"Question about your approach to [topic]"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The key is specificity. "I have an idea" is spam. "I have an idea about your pricing page" is curiosity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Framework 3: The Direct Ask
&lt;/h2&gt;

&lt;p&gt;Sometimes the best approach is being straightforward. No tricks, no hooks. Just clarity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pattern:&lt;/strong&gt; &lt;code&gt;[Clear Intent] + [Time Expectation]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"15 min chat about cold outreach?"&lt;/li&gt;
&lt;li&gt;"Worth a conversation?"&lt;/li&gt;
&lt;li&gt;"Quick feedback request"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Direct subject lines work best when your sender reputation is established or when targeting senior decision-makers who respect their own time.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Technical Side: What to Avoid
&lt;/h2&gt;

&lt;p&gt;Beyond frameworks, there are technical factors that affect deliverability before a human ever sees your subject line.&lt;/p&gt;

&lt;h3&gt;
  
  
  Spam Trigger Patterns
&lt;/h3&gt;

&lt;p&gt;Certain patterns consistently trigger spam filters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ALL CAPS&lt;/strong&gt; words (one is fine, a whole subject in caps is not)&lt;/li&gt;
&lt;li&gt;Excessive punctuation (!!!, ???, or $$$)&lt;/li&gt;
&lt;li&gt;Known spam phrases: "act now," "limited time," "free money," "guaranteed"&lt;/li&gt;
&lt;li&gt;Emoji overuse in B2B contexts&lt;/li&gt;
&lt;li&gt;RE: or FW: prefixes on first-touch emails (dishonest and detectable)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Character Encoding Issues
&lt;/h3&gt;

&lt;p&gt;If you're building email tools or templates, watch out for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Common encoding pitfalls
"Smart quotes" &amp;gt; Use straight quotes in subject lines
Em dashes &amp;gt; Some clients render these as ???
Non-ASCII characters &amp;gt; Test across clients before sending
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Preview Text Interaction
&lt;/h3&gt;

&lt;p&gt;Modern email clients show preview text alongside the subject line. This is technically the first line of your email body (or a hidden preheader). Your subject line and preview text should work as a pair, not repeat each other.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Subject: "Quick question about your onboarding"
Preview: "I signed up for a trial last week and..."

// vs.

Subject: "Quick question about your onboarding"  
Preview: "Quick question about your onboarding flow..."  // Redundant
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  A Simple Testing Approach
&lt;/h2&gt;

&lt;p&gt;Before sending any cold email campaign, run your subject lines through this checklist:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The 40-character test&lt;/strong&gt; - Does it read well when truncated?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The "why me" test&lt;/strong&gt; - Would the recipient know why they got this?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The inbox scan test&lt;/strong&gt; - Read it among 20 other subject lines. Does it stand out without being loud?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The spam word check&lt;/strong&gt; - Run it through a basic spam word list&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The honesty test&lt;/strong&gt; - Does the email body deliver what the subject promises?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Building These Into Your Workflow
&lt;/h2&gt;

&lt;p&gt;When I built &lt;a href="https://getcoldmail.com" rel="noopener noreferrer"&gt;ColdMail&lt;/a&gt;, one of the core design decisions was keeping email generation client-side in the browser. No emails stored on a server, no subject line data collected. This matters because subject lines are where most personalization lives, and personalization data should stay with the sender.&lt;/p&gt;

&lt;p&gt;Whether you use a tool or write manually, the principles are the same: specificity beats cleverness, clarity beats creativity, and relevance beats everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;Cold email subject lines aren't about being clever. They're about being relevant and clear within a tight technical constraint: a few dozen characters, filtered by algorithms, scanned by humans in under three seconds.&lt;/p&gt;

&lt;p&gt;Master the frameworks, respect the technical limits, and always test before you scale.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;What subject line patterns have worked best in your outreach? Drop them in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>saas</category>
      <category>webdev</category>
      <category>coldemail</category>
    </item>
  </channel>
</rss>
