Delayed Email Plugin

WordPress plugin WP Delayed Mail lets you send an email at a future time.

To use, pass the same arguments you would to wp_mail() instead to wp_delayed_mail(), except make the first argument the time at which you want the email to be sent, in a Unix timestamp.

For example, to send an email greeting immediately in WordPress, you would usually do the following:



wp_mail(
   'recipient@example.com',
   'My Subject',
   'Hello!  How are you?'
);

 

But to send it two hours later using WP Delayed Email, you would do the following:



wp_delayed_mail(
   time() + ( 60 * 60 * 2 ),
   'recipient@example.com',
   'My Subject',
   'Hello!  How are you?'
);

 

or something like this:



wp_delayed_mail(
   strtotime("next Thursday"),
   'recipient@example.com',
   'My Subject',
   'Hello!  How are you?'
);

 

You can use any arguments you would normally pass to wp_mail, including headers:



wp_delayed_mail(
   strtotime("next Thursday"),
   'recipient@example.com',
   'My Subject',
   'Hello!  How are you?',
   array(
      'From: filosofo <notarealaddress@ilfilosofo.com>',
   )
);

 

Download

Why would someone want to do this?

I created this plugin because someone wanted a delayed autoresponder, but there are many other possible uses, such as appointment reminders. I hope it’s helpful for you!

If you have any questions or or concerns, please post to my support forum.