Support » Fixing WordPress » get post content and email it when publishing

  • Everytime i publish a post, i want to email that post to a specified email address.

    The problem is i dont know how to access the content of the post i just published.

    function email_content() {

    //code for emailing just published post’s content
    }

    add_filter(‘publish_post’, ’email_content’);

    if anyone can help please let me know how.

Viewing 1 replies (of 1 total)
  • This may not be as elegant a solution as you’re thinking, but would it be adequate to use a service like Feedburner that offers email delivery of new posts?

Viewing 1 replies (of 1 total)
  • The topic ‘get post content and email it when publishing’ is closed to new replies.