Viewing 3 replies - 1 through 3 (of 3 total)
  • I just wanted to chime in and add my vote for this request. Everything was working fine when I used the default WordPress php-mail function, but I switched to the Postman SMTP Mailer plugin and now the emails come through as un-rendered plain text.

    It’s generally not a good idea to edit plugin files because your changes will be overwritten whenever a new version is released, but… I’ve temporarily fixed this issue by editing the file, class.email-post-changes.php.

    Around line #230 change this…

    wp_mail(
    				$email,
    				sprintf( __( '[%s] %s changed: %s' ), $blogname, $post_type, $title ),
    				$html_diff

    to this…

    $pb_headers = array('Content-Type: text/html; charset=UTF-8');
    			wp_mail(
    				$email,
    				sprintf( __( '[%s] %s changed: %s' ), $blogname, $post_type, $title ),
    				$html_diff,
    				$pb_headers

    I experienced some formatting problems as well

    Making Paul’s change fixed the issue

    Hopefully this will be included in an update

    Thanks Paul

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Content type should be text/html’ is closed to new replies.