WordPress.org

Ready to get started?Download WordPress

Forums

Post By Email
Create Cronjob (2 posts)

  1. Dark Site H
    Member
    Posted 4 months ago #

    Hi,

    I will using the plugin "Post By Email" to import my posts from an Mail-Account into WordPress. Now I will using a Cronejob for the sync.

    When I using the wp-mail.php file in my root of the www share, I become the message "This action is disabled by administrator" (translatetd!).

    I need another URL for my cronjob?

    Thanks for Informations!

    https://wordpress.org/plugins/post-by-email/

  2. Kat Hagan
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    wp-mail.php is deprecated. To set up sync in a cronjob, you'll want to create a new PHP file that triggers the 'wp-mail.php' action:

    do_action( 'wp-mail.php' );

    The file will also have to load WP, of course, otherwise you won't have access to do_action(). So try something like this:

    <?php
    require_once("/path/to/wordpress/wp-load.php");
    do_action( 'wp-mail.php' );

    Let me know if that works, I haven't actually tried it myself. :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.