<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mike Kipruto on Medium]]></title>
        <description><![CDATA[Stories by Mike Kipruto on Medium]]></description>
        <link>https://medium.com/@itsmikekipruto?source=rss-da68e11fdc77------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ENEy90kwLZ7Ex5eGYvFWnA.jpeg</url>
            <title>Stories by Mike Kipruto on Medium</title>
            <link>https://medium.com/@itsmikekipruto?source=rss-da68e11fdc77------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 11:30:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itsmikekipruto/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[WordPress emails were failing silently on DigitalOcean. Here’s what broke.]]></title>
            <link>https://itsmikekipruto.medium.com/wordpress-emails-were-failing-silently-on-digitalocean-heres-what-broke-58d96454e0bf?source=rss-da68e11fdc77------2</link>
            <guid isPermaLink="false">https://medium.com/p/58d96454e0bf</guid>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[email-delivery]]></category>
            <category><![CDATA[zoho]]></category>
            <category><![CDATA[digitalocean]]></category>
            <category><![CDATA[wordpress-plugins]]></category>
            <dc:creator><![CDATA[Mike Kipruto]]></dc:creator>
            <pubDate>Thu, 28 May 2026 06:55:49 GMT</pubDate>
            <atom:updated>2026-05-28T06:55:49.183Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Lessons Learned Using Zoho Mail with DigitalOcean for WordPress Email Delivery" src="https://cdn-images-1.medium.com/max/1024/1*Nuo8DkEgXWRLI2Pf_lTOzg.png" /></figure><p>I run a WordPress site on a DigitalOcean droplet handling contact forms, service requests, and automated notifications.</p><p>Everything worked in development.</p><p>In production, emails started disappearing without errors on the frontend.</p><p>No alerts. No logs (initially). Just missing messages.</p><p>The issue wasn’t WordPress. It was the environment it was running in.</p><p>Here’s what actually broke — and how I rebuilt the system to make email delivery reliable.</p><h3>SMTP worked locally but failed in production</h3><p>Locally, SMTP with Zoho worked:</p><ul><li>credentials valid</li><li>emails delivered</li><li>no errors</li></ul><p>After deploying to DigitalOcean, SMTP failed immediately.</p><p>Connections to Zoho’s SMTP servers did not succeed.</p><p>The cause was not code or credentials.</p><p>DigitalOcean blocks outbound SMTP ports by default as an anti-abuse measure.</p><p>That means WordPress never even reached the mail server.</p><p>So what looked like a “WordPress issue” was actually a network restriction.</p><h3>Switching to Zoho API solved one problem and revealed another</h3><p>Zoho provides two ways to send email:</p><ul><li>SMTP (traditional method)</li><li>Mail API v2 (HTTPS-based)</li></ul><p>The API immediately solved the network problem because it runs over HTTPS, which is always allowed on DigitalOcean.</p><p>But then new constraints appeared.</p><h3>The API enforces stricter rules than SMTP</h3><h3>Sender identity must be verified</h3><p>With SMTP, you can often set different sender addresses freely.</p><p>With the Zoho API, the sender must be a verified account inside Zoho.</p><p>If your authenticated account is admin@yourdomain.com, you cannot send as contact@yourdomain.com unless it is verified.</p><p>Otherwise, the request fails with a generic internal error.</p><p>Fix:<br> <em>Always use your authenticated Zoho email as the sender address, and adjust only the display name if needed.</em></p><h3>Reply-To does not behave like SMTP</h3><p>This was a major issue for contact forms.</p><p>SMTP allows any Reply-To address, which makes contact forms simple.</p><p>The Zoho API rejects unverified Reply-To addresses and fails the entire request.</p><p>That breaks a core expectation of form submissions.</p><p>Fix:<br> Instead of relying on Reply-To:</p><ul><li>include the user’s email inside the message body</li><li>add a clickable “Reply” mail link so responses are still one click away</li></ul><p>It is less elegant than SMTP but reliable under strict API rules.</p><h3>Local testing created a false sense of reliability</h3><p>Everything worked in a local environment.</p><p>That created a dangerous assumption:</p><ul><li>SMTP is stable</li><li>WordPress is sending emails correctly</li></ul><p>But production told a different story.</p><p>Local environments do not simulate:</p><ul><li>port restrictions</li><li>firewall rules</li><li>hosting-level blocking</li></ul><p>So email delivery must always be validated in production conditions.</p><h3>Silent email failures are the most dangerous type of bug</h3><p>WordPress email functions return success or failure.</p><p>But many themes and plugins ignore that result and always show a success message to users.</p><p>This leads to:</p><ul><li>users believing emails were sent</li><li>site owners never receiving notifications</li><li>no immediate visibility of failure</li></ul><p>Fixing this required treating email as an unreliable system.</p><p>In my setup:</p><ul><li>failures are logged</li><li>alerts are sent to Telegram</li><li>form submissions still succeed even if email fails</li></ul><p>Email is treated as a notification layer, not a system of record.</p><h3>The real solution: a transport layer that makes decisions</h3><p>Instead of relying on a single method, I built a routing system for email delivery.</p><p>Default behavior:<br> Use Zoho Mail API for standard transactional emails because it is fast and works reliably on DigitalOcean.</p><p>Fallback behavior:<br> Switch to SMTP only when needed, such as when attachments are required or when API calls fail.</p><p>Failure handling:<br> If authentication or configuration errors occur, the system stops and alerts the administrator immediately.</p><p>The key change is architectural:</p><p>WordPress no longer decides how email is sent.</p><p>The transport layer does.</p><h3>Email deliverability depends on DNS, not just code</h3><p>Once delivery worked, I verified email authentication using Gmail headers.</p><p>Everything passed:</p><ul><li>SPF passed</li><li>DKIM passed</li><li>DMARC passed</li></ul><p>These checks confirm that:</p><ul><li>the domain is authorized to send emails</li><li>messages are cryptographically signed</li><li>spam filters are more likely to trust the email</li></ul><p>Without these, even correctly sent emails can land in spam.</p><h3>Summary of what broke and how it was fixed</h3><p>SMTP failed because DigitalOcean blocks outbound mail ports.</p><p>The Zoho API worked but required stricter sender validation.</p><p>Reply-To behavior changed and required a different approach.</p><p>Local testing hid production-only failures.</p><p>Silent email failures required explicit logging and alerts.</p><p>A hybrid transport system was needed to make delivery reliable.</p><h3>Full implementation</h3><p>I documented the complete setup, including the transport layer logic and production fixes here: <a href="https://mike.co.ke/wordpress/zoho-mail-digitalocean-email-delivery-fixes/">https://mike.co.ke/wordpress/zoho-mail-digitalocean-email-delivery-fixes/</a></p><h3>Final takeaway</h3><p>Most WordPress email issues are not WordPress issues.</p><p>They are infrastructure constraints exposed at runtime.</p><p>Once you account for:</p><ul><li>network restrictions</li><li>API enforcement rules</li><li>failure visibility</li></ul><p>Email delivery becomes stable and predictable.</p><p>The fix is not switching tools.</p><p>It is designing for failure from the start.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58d96454e0bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reality is Neutral]]></title>
            <link>https://itsmikekipruto.medium.com/reality-is-neutral-9f0dc516f2a9?source=rss-da68e11fdc77------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f0dc516f2a9</guid>
            <dc:creator><![CDATA[Mike Kipruto]]></dc:creator>
            <pubDate>Mon, 28 Apr 2025 08:35:11 GMT</pubDate>
            <atom:updated>2025-04-28T08:35:11.292Z</atom:updated>
            <content:encoded><![CDATA[<p>Reality is neutral. Our reactions reflect back and create our world.</p><p>Judge, and feel separate and lonely. Anger, and lose peace of mind. Cling, and live in anxiety. Fantasize, and miss the present.</p><p>Desire, and suffer until you have it. Heaven and hell are right here, right now.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f0dc516f2a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>