Title: Using Mailpoet conditionally
Last modified: June 20, 2017

---

# Using Mailpoet conditionally

 *  Resolved [yosmc](https://wordpress.org/support/users/yosmc/)
 * (@yosmc)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/using-mailpoet-conditionally/)
 * Hello,
 * I need to implement more complicated conditions to determine if and when a newsletter
   should be sent – basically I need to make some database queries first to find
   out if the conditions are met. I’m trying to achieve this by launching my own
   script via crontab – the script will check the conditions, and only if they are
   met, trigger the newsletter-sending process.
 * Is this something I can (ab)use Mailpoet for?
 * Possible issues:
    – When I configure Mailpoet for use with cron, the program 
   provides a link for that purpose. At the end of the link, there’s a “process=
   all” parameter. For my purposes, however, I don’t want to process all newsletters,
   but would like to trigger newsletters individually. Is there a way to do this?“
   process=3” or similar doesn’t seem to work, unfortunately. – For the purposes
   stated above, I only want Mailpoet to create a newsletter when the script is 
   called, what I don’t want is that it queues up newsletters without being called
   and then sends them all out when the chance arises (I’m assuming that, when the
   Mailpoet newsletter is set to “daily” but the cron job is set to weekly, once
   the script is called, it will not send out one newsletter but all seven, correct?).
   Is there a way to set this up correctly? I was hoping that setting the newsletter
   to “standard” would do the trick, but it seems that way it doesn’t get triggered
   at all when I call the cronjob.
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/using-mailpoet-conditionally/#post-9246687)
 * We’re afraid MailPoet won’t be able to do that for you. There’s no granular control
   over the newsletter queue.
 *  Thread Starter [yosmc](https://wordpress.org/support/users/yosmc/)
 * (@yosmc)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/using-mailpoet-conditionally/#post-9250284)
 * Thanks – but are you sure? I mean there’s the feature “standard newsletter” which,
   I guess, is for one-time mailings. However, if I can send an individual one-time
   mailing from within the admin interface, then obviously there must be some kind
   of function to do this? Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using Mailpoet conditionally’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wysija-newsletters_ffddcc.svg)
 * [MailPoet Newsletters (Previous)](https://wordpress.org/plugins/wysija-newsletters/)
 * [Support Threads](https://wordpress.org/support/plugin/wysija-newsletters/)
 * [Active Topics](https://wordpress.org/support/plugin/wysija-newsletters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wysija-newsletters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wysija-newsletters/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [yosmc](https://wordpress.org/support/users/yosmc/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/using-mailpoet-conditionally/#post-9250284)
 * Status: resolved