Title: BUG in HTML Mails
Last modified: July 30, 2018

---

# BUG in HTML Mails

 *  [jp73](https://wordpress.org/support/users/jp73/)
 * (@jp73)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/bug-in-html-mails/)
 * In a CF7 Form – I have a hidden field that gets a url of medium size image as
   value via jQuery.
 * So for so good, but after the submition of the correct URL in the XHR request,
   the url appears wrong in the html Mail.
 * The char **x** of the wordpress size specification in the filename, eg. IMG_0871-
   300×225.jpg, is turned into the **×** (×) char -> IMG_0871-300×225.jpg.
    After
   that the url of the image is wrong and returns a 404.
 * If I switch the mail specification to non-html the url in the mail is correct,
   but useless, because I can´t display this image in the mail.
 * Do you parse or sanitze the “input” shortcodes in a different way for html mail?

Viewing 1 replies (of 1 total)

 *  Thread Starter [jp73](https://wordpress.org/support/users/jp73/)
 * (@jp73)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/bug-in-html-mails/#post-10562591)
 * No idea why this happens?
 * I made a workaround. I created a function that replace the “times”-char with 
   the X char to correct the urls and fired this function with the wpcf7_before_send_mail
   Hook.
 * But after all – this could not be the solution for this bug.

Viewing 1 replies (of 1 total)

The topic ‘BUG in HTML Mails’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [jp73](https://wordpress.org/support/users/jp73/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/bug-in-html-mails/#post-10562591)
 * Status: not resolved