Results 1 to 1 of 1

Thread: Resend notification about expired ad

  1. #1
    Thread Starter
    Amateur NikPraskaton's Avatar
    Join Date
    Aug 2011
    Location
    Croatia
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Resend notification about expired ad

    Hi people, can you help me how to set an cron job or how to manually run the script that would re-send the notification about ad expired to my users?
    I have 700 ads that have draft status and would like to have ability to notify those users to visit my page one more time to reactivate their ads.

    http://pseci.net/ - the page is created to help Croatian pets (dogs) get adopted any all of the ads are free.

    Many of them didnt receive the "ad expired mail" in the first place because my mails were going to spam and many of users are animal shelters that acutaly dont use their computers on "daily basis"

    The only solution for me would be to resend that mails again.

    Maybe I could make up something with:

    Code:
    //////Type & Status Parameters - Show posts associated with certain type or status.
        'post_type' => array(                   //(string / array) - use post types. Retrieves posts by Post Types, default value is 'post';
                'post',                         // - a post.
                'page',                         // - a page.
                'revision',                     // - a revision.
                'attachment',                   // - an attachment. The default WP_Query sets 'post_status'=>'published', but atchments default to 'post_status'=>'inherit' so you'll need to set the status to 'inherit' or 'any'.
                'my-post-type',                 // - Custom Post Types (e.g. movies)
                ),  
        'post_status' => array(                 //(string / array) - use post status. Retrieves posts by Post Status, default value i'publish'.         
                'publish',                      // - a published post or page.
                'pending',                      // - post is pending review.
                'draft',                        // - a post in draft status.
                'auto-draft',                   // - a newly created post, with no content.
                'future',                       // - a post to publish in the future.
                'private',                      // - not visible to users who are not logged in.
                'inherit',                      // - a revision. see get_children.
                'trash'                         // - post is in trashbin (available with Version 2.9).
                ),
    http://www.billerickson.net/code/wp_query-arguments/ - query all custom post with status draft, but how to get the email addresses?

    Thanks for your help!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Expired notification
    By geralweb in forum Report JobRoller Bugs
    Replies: 4
    Last Post: March 17th, 2014, 05:42 PM
  2. Expired ads email notification
    By geraldlum in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: March 8th, 2012, 10:46 AM
  3. Email notification on ads expired
    By alanlee9898 in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: December 24th, 2011, 10:31 AM
  4. Job expired notification email
    By fabo in forum JobRoller General Discussion
    Replies: 1
    Last Post: July 19th, 2011, 03:59 PM