Solved

WordPress crontrol plugin

Posted on 2016-08-06
1
47 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 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jQuery Toggle & Anchor Links 5 59
RSS FEED - PROPERLY FORMATTED URL 2 58
WordPress Creating scrolling box at top of page 1 31
Wordpress contact form sending spam 2 52
Wordpress Horizontal Drop-Down Menu In this tutorial I will show you had to add a WordPress horizontal navigation menu to your theme. I have searched and searched for a good tutorial on creating a WordPress nav menu without adding a plug-in or us…
WordPress can be pretty daunting, especially for a beginner, so I thought it might be a good idea to write an article to show how easy it is to get started in WordPress and to design a custom theme.  The first step is to check with your hosting comp…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…

734 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