Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

WordPress crontrol plugin

Posted on 2016-08-06
1
Medium Priority
?
52 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
William Nettmann earned 2000 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

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

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

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…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

688 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