• Resolved ceesbo

    (@ceesbo)


    Using contact form 7 I need to send a mail with the data the user entered in the form. I need this data to be readable (i.e. plain text) as well as urlencoded (used in a link).

    Example of this mail:

    Name: [name]
    Phone: [phone]

    <a href=https://bladibla.com?name=[name]&phone=[phone]>Insert data into database</a>

    When a user enters his name with spaces, the url will break at that point and all subsequent data is lost.
    I found the possibility to add_filter in functions.php and to replace all data by urlencoded data, but that makes the readable part of the mail unreadable, because every field is urlencoded.

    Thx for your replies!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact Form 7 – urlencode AND plain text’ is closed to new replies.