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

    Hey there,

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

    Thanks!

    #363930

    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

    #567827

    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

    #567850

    It was the Post-man Mail-plugin that broke the changes. is this something You have encoutered before?

    #568331

    Hi!

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

    Cheers!
    Elliott

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