Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #363490

    Hey there,

    mails sent via the contact form are usually sent as HTML. How can I switch it to plain text?



    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,


    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?



    I’ve never heard of it. Thanks for sharing.


Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.