WordPress.org

Ready to get started?Download WordPress

Forums

get post content and email it when publishing (2 posts)

  1. exoram
    Member
    Posted 2 years ago #

    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.

  2. kgagne
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.