Title: Resend email sends raw html code
Last modified: August 25, 2020

---

# Resend email sends raw html code

 *  [tlozano](https://wordpress.org/support/users/tlozano/)
 * (@tlozano)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/resend-email-sends-raw-html-code/)
 * Hi!
    Thank you for this excelent plugin. I’m using Versión 2.0.15 of Post SMTP.
 * I have a problem when resending HTML e-mail from email log: it sends raw html(
   or plain text) e-mails only. I have found this topic: [https://wordpress.org/support/topic/resending-html-email-failure-raw-html-sent/](https://wordpress.org/support/topic/resending-html-email-failure-raw-html-sent/)
   and added the
 * $meta_values [‘original_headers’][0] = unserialize($meta_values[‘original_headers’][
   0]);
 * lines above the
 * $success = wp_mail( $to, $meta_values [‘original_subject’] [0], $meta_values [‘
   original_message’] [0], $meta_values [‘original_headers’] [0] );
 * line in the PostmanEmailLogController.php but it still sends raw HTML mails. 
   What did I wrong? Is there a fix to this issue?

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

 *  Thread Starter [tlozano](https://wordpress.org/support/users/tlozano/)
 * (@tlozano)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/resend-email-sends-raw-html-code/#post-13309069)
 * It only fails with Gravity forms resends emails.
    If GF send an email is is send
   fine, but if I resend the email from the log, then it is send in plain text (
   html code is visible).
 * Thank you
 *  [Explorer Travel](https://wordpress.org/support/users/thornway/)
 * (@thornway)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/resend-email-sends-raw-html-code/#post-13309320)
 * Hi
    Yes I see exactly the same issue. Form sends fine but if I do a resend from
   the email log it arrives with the recipient as raw HTML. Any ideas?
 *  [hastibe](https://wordpress.org/support/users/hastibe/)
 * (@hastibe)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/resend-email-sends-raw-html-code/#post-13314630)
 * This happens with resends of emails by some plugins of mine (such as those created
   by [WP Job Manager Emails](https://plugins.smyl.es/wp-job-manager-emails/)), 
   too!
 * It would be very helpful to know how this can be resolved.

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

The topic ‘Resend email sends raw html code’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [hastibe](https://wordpress.org/support/users/hastibe/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/resend-email-sends-raw-html-code/#post-13314630)
 * Status: not resolved