Title: Monthly reports show HTML source code
Last modified: May 3, 2026

---

# Monthly reports show HTML source code

 *  [Ron](https://wordpress.org/support/users/donniepeters/)
 * (@donniepeters)
 * [6 days, 2 hours ago](https://wordpress.org/support/topic/monthly-reports-show-html-source-code-2/)
 * I am having the same issue as [@ravanh](https://wordpress.org/support/users/ravanh/)
   and am using the [https://wordpress.org/support/plugin/post-smtp/](https://wordpress.org/support/plugin/post-smtp/).
   I have multiple sites that use SiteKit and the same Post-SMTP plugin but only
   one has the monthly report activated at this time. We have other forms on our
   website that have no issues sending them in HTML. The email account we use is
   on our domain but is a Google Workspace account.
   This is what we see using Thunderbird
   mail software on Windows 11. We see exactly the same content using Chrome V147…
   and using the Gmail link from the Google.com homepage (We have a Google Workspace
   account)<!doctype html><html xmlns=”[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)“
   xmlns:v=”urn:schemas-microsoft-com:vml”xmlns:o=”urn:schemas-microsoft-com:office:
   office”><head>        <meta name=”viewport” content=”width=device-width” />  
   <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />        
   <meta name=”color-scheme” content=”light dark” />        <meta name=”supported-
   color-schemes” content=”light dark” />                <!–[if gte mso 9]>     
   <xml>                <o:OfficeDocumentSettings>                        <o:AllowPNG/
   >                        <o:PixelsPerInch>96</o:PixelsPerInch>               
   </o:OfficeDocumentSettings>        </xml>        <![endif]–>        <title>Your
   monthly Site Kit report for
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmonthly-reports-show-html-source-code-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [5 days, 6 hours ago](https://wordpress.org/support/topic/monthly-reports-show-html-source-code-2/#post-18897983)
 * Hi [@donniepeters](https://wordpress.org/support/users/donniepeters/) my only
   solution was switching to an alternative SMTP plugin. I chose the most popular
   other one which allowed convenient import/migration of the smtp settings but 
   lacks logging. Luckily there is a second plugin by the same author (!) specially
   for mail logging 😉
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 days, 6 hours ago](https://wordpress.org/support/topic/monthly-reports-show-html-source-code-2/#post-18897997)
 * Thanks for reaching out [@donniepeters](https://wordpress.org/support/users/donniepeters/).
   Appreciate the context and additional details regarding your setup and experience.
   We are [working on a solution for this](https://github.com/google/site-kit-wp/issues/12632)
   whereby I added your own report in there. While I’ll chase up regarding when 
   a fix is expected, I’ll perform some checks on this. Can you share what the mailer
   option you selected within Post SMTP?
 *  Thread Starter [Ron](https://wordpress.org/support/users/donniepeters/)
 * (@donniepeters)
 * [5 days, 2 hours ago](https://wordpress.org/support/topic/monthly-reports-show-html-source-code-2/#post-18898220)
 * Hi [@jamesosborne](https://wordpress.org/support/users/jamesosborne/)
 * Not quite sure what you are looking for but in Post SMTP in the Settings panel
   >Connections under Transport I have chosen the “Gmail Api” for Type (as we use
   Google Workspace) and Mailer Type is set for PostSMTP and not the only other 
   option of Phpmailer.
   We do not use a Fallback.Under Message we do** NOT **have“
   Prevent plugins and themes from changing this” checked.
 * A few hours after the Monthly Site Kit report came out in raw HTML we had an 
   email from our Wordfence Plugin sent by the same mailer in HTML and it was received
   properly.
   When I went in to the Post SMTP Log and clicked on the “View” for the
   email sent by Site Kit it appeared in proper form and not as code. Also when 
   I clicked the “Print” function from the “View” popup it was able to print properly
   and not in code.When I compare the “Transcript” of two emails one from Site Kit
   plugin and one from the Wordfence plugin I see the following differences up to
   the **<head>** _(left out sections that were the same)_:Site Kit email:Content-
   Type: text/plain; charset=UTF-8
 *     ```wp-block-code
       <!doctype html>=0A<html xmlns=3D"http://www.w3.org/1999/xhtml" xmlns:v= =3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-microsoft-com:= office:office">=0A
       ```
   
 * Wordfence email:
 * Content-Type: text/html; charset=UTF-8
 *     ```wp-block-code
       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.= org/TR/xhtml1/DTD/xhtml1-strict.dtd">=0A<html xmlns=3D"http://www.w3.org= /1999/xhtml">=0A
       ```
   
 * I hope this helps. I have 6 WordPress websites that I manage for clients and 
   all have Site Kit and Post SMTP mailer. At the moment only the one that is on
   Google Workspace has the Monthly Report set up. I do not want to change the Mailer
   Plugin for all of them.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [4 days, 6 hours ago](https://wordpress.org/support/topic/monthly-reports-show-html-source-code-2/#post-18899288)
 * Appreciate the update [@donniepeters](https://wordpress.org/support/users/donniepeters/).
   I configured a test site and I can confirm the same, regardless of whether PostSMTP
   or PHPMailer is the type applied. I did also test other configurations, while
   discussing this with the team, in particular any updates to the mentioned GitHub
   issue. From doing this, this isn’t specifically a Site Kit issue, with more details
   [here](https://github.com/google/site-kit-wp/issues/12632#issuecomment-4369343972).
   Regardless, we may be able to make some improvements within Site Kit to lower
   such instances, but this is still being reviewed as there may be regressions 
   elsewhere. Ideally a fix would be applied from the POST SMTP side.
 * Luckily, rather than waiting for any resolution on this, there is a workaround
   which I tried and tested on a couple of sites. Post SMTP to have [a HTML email add on](https://drive.google.com/file/d/1dhohz68qvISVy7RE1dumYxiDmq2aPQ5q/view)–
   taken from [this support topic](https://wordpress.org/support/topic/html-code-showing-in-ninja-forms-notifications/).
   When enabled on my sites sites, emails are formatted and deleted in HTML format.
   Can you try this and confirm all is working as expected?
 * If the same does occur with the HTML email add on provided by Post SMTP, you 
   may also wish to reach out to their team regarding this. An explanation of the
   cause can be found [here](https://github.com/google/site-kit-wp/issues/12632#:~:text=Post%20SMTP%2C%20however,containing%20raw%20HTML.).
   Do let me know how you get on with the above regardless.
 * Note: I’m sure you’re aware, but to install that add on, download the zip file
   and install using [the upload plugin method](https://wordpress.org/documentation/article/manage-plugins/#upload-via-wordpress-admin),
   before activating.
    -  This reply was modified 4 days, 5 hours ago by [James Osborne](https://wordpress.org/support/users/jamesosborne/).
 *  Thread Starter [Ron](https://wordpress.org/support/users/donniepeters/)
 * (@donniepeters)
 * [4 days, 2 hours ago](https://wordpress.org/support/topic/monthly-reports-show-html-source-code-2/#post-18899571)
 * [@jamesosborne](https://wordpress.org/support/users/jamesosborne/) thanks for
   the update. Since we only have the issue with the Site Kit Monthly report that
   recently launched and the mailer plugin has work perfectly on all other emails
   generated from our website in HTML format …. and on all the other sites I manage,
   we will simply advise NOT using the Site Kit monthly report… in particular on
   the WordPress website for the Google Workspace user accounts. Hopefully none 
   of the other Google products that are part of their plan develop failures like
   this product.
 * We look forward to fixing your plugin to work properly in a timely manner… which
   we have used on multiple websites since it first launched as it helped tie in
   access to Google Search, Analytics and Google Ad accounts for each website.
 * Other than using high resources when we open the backend Admin panels and the
   Site Kit widgets regularly fail to load as they exceed our resource limits… the
   Site Kit has work well and offers immediate and easy to understand data that 
   Analytics has now made more challenging to view easily.
 * Please fix the plugin to work properly and maybe take the time to reach out to
   the Post SMTP folks to share your suggestion on how they can help you deliver
   reports that are actually usable.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [3 days, 6 hours ago](https://wordpress.org/support/topic/monthly-reports-show-html-source-code-2/#post-18900416)
 * I’ll certainly pass on your feedback [@donniepeters](https://wordpress.org/support/users/donniepeters/),
   thanks for sharing. Glad to hear that you’re using Site Kit for multiple sites
   too.
 * We do plan on having an update with the next version of Site Kit set for 2 weeks
   time, which will ensure email reports do appear in HTML format for any plugins
   such as Post SMTP that register their own `wp_mail()` function before WordPress
   core. I’ll let you know as soon as this is shipped.
 * > Other than using high resources when we open the backend Admin panels and the
   > Site Kit widgets regularly fail to load as they exceed our resource limits…
   > the Site Kit has work well and offers immediate and easy to understand data
   > that Analytics has now made more challenging to view easily.
 * If you wish for us to look into or investigate any issues you may be facing specifically
   with wp-admin performance or resource issues, feel free to open individual support
   topic and we can do so. There are individual Google API limits per request that
   users can indeed reach, which isn’t something we can directly control, as these
   are API write limits.
 * Regarding performance, we do bundle requests, cache responses, and limit requests
   to the Site Kit dashboard. If you’re finding anything unusual we can certainly
   investigate this further. Thank you.
 *  Thread Starter [Ron](https://wordpress.org/support/users/donniepeters/)
 * (@donniepeters)
 * [3 days, 3 hours ago](https://wordpress.org/support/topic/monthly-reports-show-html-source-code-2/#post-18900628)
 * Thanks [@jamesosborne](https://wordpress.org/support/users/jamesosborne/)
 * I like the idea of having the Monthly reports generated from within WordPress.
   
   My comment about the failure to load happens on many of the websites I manage,
   who are in individual hosting accounts… though at this time they are all on Hosting.
   com (formerly A2Hosting) and it may be the quality of their service as they have
   not adapted to the huge increase in bots now hitting most sites, which takes 
   some resources away. But on almost all of them I have to hit the red “Retry” 
   button on the Dashboard to get them to load a block of info.Thanks for your suggestion
   though.
 *  [wpfixpath](https://wordpress.org/support/users/wpfixpath/)
 * (@wpfixpath)
 * [1 day, 10 hours ago](https://wordpress.org/support/topic/monthly-reports-show-html-source-code-2/#post-18902449)
 * The evidence points to an email MIME/header problem, not the email client.
 * Your transcript difference is the key:
 * Site Kit email:
   `Content-Type: text/plain; charset=UTF-8`
 * Working HTML email:
   `Content-Type: text/html; charset=UTF-8`
 * So the HTML body is being delivered, but the mail pipeline is labeling it as 
   plain text.
 * Check in this order:
    1. Test the Post SMTP HTML add-on/workaround on one affected site only.
    2. Do not migrate all sites or change SMTP plugin globally until one test confirms
       it.
    3. Compare headers for Site Kit vs Wordfence after the workaround.
    4. Keep Site Kit monthly reports disabled on client sites until the fix ships, 
       if the report renders raw HTML.
 * The issue is not whether Gmail/Thunderbird can render HTML. They can. The wrong`
   Content-Type` is telling them not to.

Viewing 8 replies - 1 through 8 (of 8 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmonthly-reports-show-html-source-code-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [wpfixpath](https://wordpress.org/support/users/wpfixpath/)
 * Last activity: [1 day, 10 hours ago](https://wordpress.org/support/topic/monthly-reports-show-html-source-code-2/#post-18902449)
 * Status: not resolved