Home>Support>Contact Form widget now sending unrendered HTML in email

Contact Form widget now sending unrendered HTML in email

Ever since a recent plugin update (now at version 2.16.14), the SiteOrigin Contact Form widget now sends unrendered HTML, whereas it did not do that before the update.

Example email:

"<strong>From:</strong> <a href="mailto:[email protected]">Sender Name</a> <[email protected]>
<strong>Message:</strong>
Test message."

Any ideas, anyone?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 days, 16 hours ago AustinIS

    Addendum: this forum seems to have rendered the HTML, but that’s not how it appears as an email, either viewed via webmail in Web browsers and email clients.

    Here’s how it looks when received in an email:

  2. 8 days, 23 hours ago Andrew Misplon Hi, I Work Here

    Hi Austin

    Thanks for getting in touch.

    I’ve added code tags around your markup above. The forum doesn’t support email attachments but you can upload images to your Media Library or any online source of your choosing. Dropbox, Imgur.com, or WeTransfer are options.

    Is the issue persisting with your form? I’ve tried to replicate but haven’t had any luck.

  3. 8 days, 14 hours ago AustinIS

    Thank you for the reply. Yes, the problem persists.

    The code you showed above is not exactly correct. Here is what it actually looks like:

    <strong>From:</strong> <a href="mailto:[email protected]">Your Name</a> <[email protected]> 
    
    
    <strong>Message:</strong>
    
    This is the message.
    
    
  4. 8 days, 14 hours ago Andrew Misplon Hi, I Work Here

    Hi Austin

    Thanks for the update. Which client or online provider is the email being read in? Are you able to check the email in more than one location/program?

  5. 8 days, 14 hours ago AustinIS

    Again, this comments section is stripping out some of the HTML. Here’s a link to a screenshot of what the emails look like:

    https://www.icloud.com/iclouddrive/052wp0_uAR-ZdtobA3cA6X3_A#Screen_Shot_2022-06-23_at_12.43.44_PM

    Email provider is Zoho, but SMTP is provided by Amazon Web Services Simple Email Service (AWS SES). I actually suspect AWS SES, as it’s currently running in “Sandbox Mode.”

  6. 8 days, 14 hours ago Andrew Misplon Hi, I Work Here

    Thanks. The tests I ran earlier today also used SES as the SMTP provider. Does your server offer PHP Mail? If so, could you perhaps switch over to PHP Mail for a quick comparison test? That’ll help us isolate where the issue is. If you’re hosted with Digital Ocean or similar then this won’t be possible.

  7. 8 days, 13 hours ago AustinIS

    Server is “self-hosted” on AWS LightSail, and email is being sent by the WP SMTP plugin. I could probably use php mail, but it needs to be configured first. I’ll let you know if I do that, and whether it makes a difference.

  8. 8 days, 13 hours ago Andrew Misplon Hi, I Work Here

    If PHP Mail isn’t set up; no worries. Thanks for the info. A quick test to help us isolate the issue might be to install Contact Form 7 plugin, insert a form and see if the result is similar. If you’re up for it…

Please log in to post on our forums. Signing up is free.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More