Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wordperss contact form 7 doesn't send html content

i'm pretty new to wordpress and contact form, so i've installed wp and contact form 7 and then, i installed ckeditor to make it more nice for the user.

Then, i created a new form with this code:

<p>השם שלך (חובה)<br />
[text* name placeholder "השם שלך"] </p>

<p>האימייל שלך: (חובה)<br />
[email* email placeholder "האימייל שלך"] </p>

<p class="block">נושא<br />
[text subject placeholder "נושא ההודעה"] </p>

<p class="block message">ההודעה שלך<br />
[textarea message class:ckeditor placeholder "תוכן ההודעה"] </p>

<p class="block submit-wrapper text-left">[submit "שלח"]</p>

And those in settings i checked the option "use html content".
When i sent the email from the site (on the local, using xampp) and the enail was sent but the [textarea message] wasn't there.
After that, i unchecked the "use html content" and sent the email again. The message was there but it was a plain text, the html tags were escaped.

Any help? thanks :)

like image 827
StyleSh1t Avatar asked Aug 14 '15 11:08

StyleSh1t


People also ask

How do I use contact form 7 in HTML?

You don't need to wrap this in a <form> tags - Contact Form 7 does that already (and assigns an ID). In your WordPress text editor, use the form shortcode provided at the top of the Contact Form 7 interface to display your final output.

Why is my WP Contact Form not working?

It is likely that the reason your WordPress Contact Form Not Working is simple – the contact form may be just not configured to the end. To resolve this problem you simply need to finish configuring it.

Why is contact form not working?

You need to make sure that you've set a valid email address in the widget's settings. Check your browser's error console for Javascript errors, and fix them if you have any. If you are an Elfsight form widget user and have a WordPress version of the widget, then check that your server supports mail function.

Can I use PHP in Contact Form 7?

The Contact Form 7 plugin is great, and works with PHP 8.0 without noticeable issues.

How to customize contact form 7 with CSS?

Each element in the form has a proper ID and CSS class associated with it, making it easy to customize if you know CSS. Each Contact Form 7 form uses the CSS class .wpcf7 that you can use to style your form. In this example, we will use the custom font called Lora in our input fields and change the background color of the form.

What happens when a file is uploaded to contact form 7?

After a user uploads a file through your contact form, Contact Form 7 checks to see if: 1.) Any PHP errors have occurred; 2.) the file type and file size are valid; and then, if the check turns out okay, Contact Form 7 moves the uploaded file to a temporary folder.

What is the best contact form plugin for WordPress?

With over 1 million active users, Contact Form 7 is one of the most popular contact form plugins for WordPress. Their biggest downside is that the out of the box forms you add are very plain looking. Thankfully, Contact Form 7 can be easily styled using CSS in your WordPress theme.

Is contact form 7 free to use?

It’s free to use and lets you add a WordPress form using shortcode. However, Contact Form 7 is very limited in features. One of the problems with Contact Form 7 is that the forms are styled plainly. Plus, the plugin doesn’t offer any built-in options to change the style of your forms.


2 Answers

Download the latest Contact form 7 from :https://wordpress.org/plugins/contact-form-7/ if below option not there in contact form 7 enter image description here

change high lighted setting As per screenshot. This work for you..

like image 130
Anand Avatar answered Oct 25 '22 19:10

Anand


HTML content is not allowed in contact form 7 for security reason.

Read this reference

like image 24
AboElnouR Avatar answered Oct 25 '22 20:10

AboElnouR