Viewing 5 replies - 1 through 5 (of 5 total)
  • I have the same issue ??
    Please someone help us, the fix appear to be in pogidude-reminder.php a file with only 45 lines of code.

    Thank you!

    I have this problem too. Is there a way to format a pretty email so what the recipient receives looks better>?

    I have the same problem. The emails are getting sent as plain text and the template is formatted html. Seeing as pogidude isn’t addressing this, I’ll see if I can come up with a hack on it…

    Hi Folks-
    Here’s a fix for the html email thing. It will require you to make changes each time the plugin is updated until the author makes the changes.

    Edit PDER.php file, located in the /wp-content/plugins/email-reminder/includes/classes directory

    At line 41, there the start of a function
    public static function send_ereminders(){

    Add this code right below it

    add_filter( 'wp_mail_content_type', function( $content_type ) {
         return 'text/html';
    });

    If that doesn’t work you probably have an old version of PHP installed. In that case use this

    add_filter( 'wp_mail_content_type', 'set_content_type' );
    function set_content_type( $content_type ) {
         return 'text/html';
    }

    That should take care of it. Now there is a line at 60 that has a headers definition for text/html but it doesn’t work

    $headers = 	__('From: Email Reminder', 'email-reminder') . "<{$author_email}>\r\n" . "Content-Type:
    			text/html;\r\n";

    and if that causes you any conflict, you can change it to

    $headers = 	__('From: Email Reminder', 'email-reminder') . "<{$author_email}>\r\n";

    Any other formatting you want to do to the emails you received can be done in this file as well. Just remember, updates will eliminate your changes unless the author updates the files being distributed.

    Thank you very much Karl!
    That’s what I love WordPress, this fantastic community, with people like you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘email not displaying correctly’ is closed to new replies.