Support » Plugin: Contact Form 7 » CF7 converting “<" or "" to HTML Entity in mail

  • I am dynamically creating a URL (with params for payment) in a hidden field out of fields present on the form and then sending a html confirmation mail with this URL to allow customers to execute their payment if they haven’t done yet.

    Problem:
    Inside the mail the URL is broken, i.e. for some unknown reasons contact form 7 converts certain characters like “<“ or “”” to their corresponding HTML-Entity

    Strange enough if i just copy the same link inside the mail tab it won’t convert the characters and the link is OK…

    <a href="https:// becomes &LT;a href=&quot;https://

    This obviously brakes the html link tag.

    No idea why this is happening and how to solve it.

    Can somebody help?

    Thanks a lot.

    Cheers,
    Cesare

    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
    • This topic was modified 1 year, 11 months ago by cesare2016.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter cesare2016

    (@cesare2016)

    here: https://www.metabolic4you.ch/anmeldung-2/
    It happens in the html mail that is sent by CF7, don’t think the website it is generated can help. I am testing it out right now. In case I can send you the html that is generated inside the mail.

    • This reply was modified 1 year, 11 months ago by cesare2016.
    • This reply was modified 1 year, 11 months ago by cesare2016.
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    See Setting up mail

    What email settings do you have in the Mail tab panel?

    Hello @cesare2016,

    If you want to use HTML in your Message body content, you should to check the Use HTML content type option below.

    Best regards,
    Yordan.

    Thread Starter cesare2016

    (@cesare2016)

    @takayukister: I checked HTML and using the rest like I do for years already, e.g. URL: [url] in the message body, etc. Its working and delivering the mails, thats not the problem. If you DM me your email I can make you send one of these mails.
    @yordansoares: yes i already did.

    • This reply was modified 1 year, 11 months ago by cesare2016.
    Thread Starter cesare2016

    (@cesare2016)

    @takayukister: Hi Takayuki. Could you look into it? Do you need any further information?
    Thanks. Cesare

    • This reply was modified 1 year, 11 months ago by cesare2016.
    Thread Starter cesare2016

    (@cesare2016)

    @takayukister: in my opinion it’s a bug in how CF7 treats special characters or (complicated links with params) in the mail tab, i.e. when mails are sent.

    you can’t see that from outside, you only see it the mail that is sent by the form. there the links is broken.

    could you please give me an update. I really do need this feature.

    cheers,
    cesare

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    I’m waiting for information from you.

    Thread Starter cesare2016

    (@cesare2016)

    in the message body i have:

    Nachname: [nachname]
    Vorname: [vorname]
    Strasse/Nr.: [strasse_nr]
    PLZ/Ort: [plz_ort]
    
    Paket: [online][paketOnline][/online][vorOrt][paket][/vorOrt]
    
    <a href="https://app-wallee.com/s/14045/pl/2012/8DVVu6k1FVBxhf1rJkWfAxa_BzJ8g39Fr61v7sOOoy0/?billingAddress[givenName]=Cesare&billingAddress[familyName]=Marchetti&billingAddress[street]=Talwiesenstr%2017&billingAddress[postCode]=0000&billingAddress[city]=8045%20Z%C3%BCrich&billingAddress[country]=CH">link</a>
    
    URL: [url]
    
    Diese E-Mail wurde von einem Anmeldeformular von metabolic4you (https://www.metabolic4you.ch/) gesendet

    and i checked: HTML type

    I this what you wanted to know exactly?

    Thread Starter cesare2016

    (@cesare2016)

    btw: the (static) link I added manually was to see how it would be treated inside the mail message that then would be sent. I actually have to put together the link (includes some params) [url] according to the input given in the form. This is done using javascript on this page. The URL is computed and the input value [url] changed properly I assure you.

    • This reply was modified 1 year, 11 months ago by cesare2016.
    Thread Starter cesare2016

    (@cesare2016)

    @takayukister: is this the information you need?

    Thread Starter cesare2016

    (@cesare2016)

    @takayukister: I have given you the information you asked me for. Are you checking the problem or do you need further information?

    Thread Starter cesare2016

    (@cesare2016)

    @takayukister: hi whats the problem? i don’t get any feedback, no solution for the problem. I have given you all the information you requested actually.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘CF7 converting “<" or "" to HTML Entity in mail’ is closed to new replies.