Solved

WordPress crontrol plugin

Posted on 2016-08-06
1
42 Views
Last Modified: 2016-08-09
I'm trying to use this plugin to test an email process I want to run every week.

See attached. I created this, I clicked "Add php Cron Event". It showed in the list.

I did not get an email. I clicked "edit" in the Cron Events list, the code is gone.

I have two other php cron events that run as scheduled.

I'm guessing it can't find php mailer because that class is at the site root. But why does it just disappear?

What am I doing wrong?
crontrol2.jpg
0
Comment
Question by:Richard Korts
1 Comment
 
LVL 12

Accepted Solution

by:
William Nettmann earned 500 total points
ID: 41745960
I assume you know it isn't finding the PHPMailer class because you have perused your PHP error log file.

That is probably because you haven't included the phpmailer.php or whatever file contains the PHPMailer class.

WordPress uses PHPMailer in it's "wp_mail()" class, so there is no good reason normally to  use PHPMailer directly, anyway.

To send HTML mail with wp_mail(), add a filter before using it like so:
add_filter('wp_mail_content_type', function( $content_type ) {
                return 'text/html';
    });
wp_mail('whoever@whatever.com', 'Subject', 'Message');

Open in new window

You are also using an SMTP server instead of the default localhost sendmail, which is seldom required but may be necesary in your case. If so, there is a WordPress plugin that will redirect wp_mail() to use SMTP as well.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Like there are many different versions of Wordpress, there are also a handful of related side projects WordPress users should be familiar with.   All of these projects are open source and GPL licensed, which means there are few restrictions to us…
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question