Tagged: CONTACT FORM, html, mail, plain text
Hey there,
mails sent via the contact form are usually sent as HTML. How can I switch it to plain text?
Thanks!
Hi henningtillmann!
Try adding this to the bottom of your /enfold/functions.php file.
add_filter( 'avf_form_mail_header', 'enfold_customization_plaintextemail', 10, 3);
function enfold_customization_plaintextemail( $header, $new_post, $form_params ) {
$header = 'Content-type: text/plain; charset=utf-8' . "\r\n";
return $header;
}
Best regards,
Elliott
Hi Elliot,
I have tried this on both the Enfold theme and my Child-theme in the functions.php, but it is still text/html )c:
Best regards,
Håkan Gustafsson
It was the Post-man Mail-plugin that broke the changes. is this something You have encoutered before?
Hi!
I’ve never heard of it. Thanks for sharing.
Cheers!
Elliott