Back to Community

Fixing Post SMTP's Resend Feature Sending Raw HTML Code

22 threads Sep 16, 2025

Content

A common and frustrating issue reported by users of the Post SMTP plugin is that the "Resend" feature in the Email Log sends emails as raw HTML code instead of a properly formatted message. This guide explains why this happens and outlines the most effective troubleshooting steps.

The Problem: Resending HTML as Plain Text

When users attempt to resend a previously logged email by clicking the "Resend" button, the recipient receives an email filled with the raw HTML and CSS markup. The email's content-type header is incorrectly set to text/plain; charset=UTF-8 instead of text/html, which prevents email clients from rendering the HTML.

Why This Happens

Based on numerous user reports, this appears to be a recurring bug within the Post SMTP plugin itself that has surfaced across multiple versions. The issue is not related to a specific mailer (Gmail, SMTP, etc.) or WordPress environment, as it occurs on a wide variety of setups. The problem specifically lies in how the plugin reconstructs and sends the email message from the log data.

Most Common Solutions and Workarounds

1. Check for the "Broken Email" Fix (Advanced Settings)

Some versions of the plugin include a setting designed to address email formatting issues:

  1. Navigate to Post SMTP → Settings.
  2. Click on the Advanced tab.
  3. Look for a setting labeled "Broken email fix" or similar.
  4. Ensure this option is enabled, save your settings, and test the resend function again.

2. Test for a Plugin Conflict

While the core issue is likely with Post SMTP, other plugins can sometimes interfere. To rule this out:

  1. Temporarily disable all other plugins except Post SMTP.
  2. Switch to a default WordPress theme (like Twenty Twenty-Four).
  3. Attempt to resend an email from the log. If the HTML is now parsed correctly, reactivate your plugins and theme one by one to identify the culprit.

3. Use an Alternative Resend Method

If the log resend feature is broken, a more reliable workaround is to use the resend function provided by the original source of the email. For example:

  • If the email was from a contact form submission</strong (e.g., Contact Form 7, Gravity Forms), resend it from within that form's entry management screen.
  • If it was a WooCommerce order notification, resend it from the WooCommerce order details page.

4. Consider a Version Rollback

This bug has been known to appear in certain updates and then get fixed in later ones. User reports indicate that rolling back to a specific version (e.g., 2.4.3) has sometimes resolved the issue. You can download previous versions from the Advanced View on the WordPress.org plugin page. Warning: Always back up your site before downgrading a plugin.

Conclusion

The Post SMTP resend bug is a well-documented issue that affects HTML email rendering. The most direct solution is to use the built-in "Broken email fix" setting if available. If that doesn't work, using the resend feature from the original plugin that sent the email is the most reliable workaround. Since this is a plugin bug, users should keep Post SMTP updated to ensure they receive official fixes as they are released.

Related Support Threads Support