use wordpress functions in cronjob

I have created a cronjob (a right one, not a wp-cron). My cron sends an email test-wise every 5 minutes. So far the cron works.

Within the cronjob I would now like to use wordpress functions (like wp_mail, wpdb->prepare, etc.).
How can I achieve this?

Read more here:: use wordpress functions in cronjob

Leave a Reply

Your email address will not be published. Required fields are marked *