Support » Plugin: Email Post Changes » Users to Email not working and not receiving emails

Viewing 2 replies - 1 through 2 (of 2 total)
  • Justin Fletcher

    (@justinticktock)

    Did you tick the post type at the bottom of the settings page? E.g. post or page type that you want to edit changes to be sent out?

    And do you get emails from the site already for other things? Like when adding a new user.

    This is a great plugin. To fix the e-mail receiving problem, replace this code on “class.email-post-changes.php” at line 230:

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

    To:

    $f_headers = 'From: WordPress <wordpress@'.str_replace('www.', '', $_SERVER['HTTP_HOST']).'>' . "\r\n";
    			wp_mail(
    				$email,
    				sprintf( __( '[%s] %s changed: %s' ), $blogname, $post_type, $title ),
    				$html_diff,
    				$f_headers
    			);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Users to Email not working and not receiving emails’ is closed to new replies.