WordPress Post HTML after Posting
add_action(‘publish_post’, ’email_post’); function email_post($postID) { $post = get_post($postID); $content = $post->post_content; $content = apply_filters(‘the_content’, $content); $content = str_replace(‘]]>’, ‘]]>’, $content); $mailto = ‘youremail’; $subject=”New Post”; if(mail($mailto, $subject, $content)) return true; else return false; } Be sure to set your headers or anything else you might need to populate your email correctly. This is untested, but … Read more