Title: Campaign process
Last modified: January 26, 2024

---

# Campaign process

 *  Resolved [rpbhatt](https://wordpress.org/support/users/rpbhatt/)
 * (@rpbhatt)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/campaign-process/)
 * How to trigger sending sms through twilio when the noptin sends automated email
   campaigns from email campaigns? Specifically I need to use ‘Post Digest’ mass
   mail.
   Also please provide me all the steps with logic what happens when the cron
   fires. I mean how it works after creating a email campaigns i.e; how campaign
   lookup, content retrieval, recipient lookup, newsletter creation, email sending
   etc.
    -  This topic was modified 2 years, 4 months ago by [rpbhatt](https://wordpress.org/support/users/rpbhatt/).

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

 *  Plugin Author [Noptin Newsletter Team](https://wordpress.org/support/users/picocodes/)
 * (@picocodes)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/campaign-process/#post-17429579)
 * Hi [@rpbhatt](https://wordpress.org/support/users/rpbhatt/),
 * You can write custom PHP code that hooks into “noptin_send_post_digest” then 
   sends the sms.
 * It’s not possible to explain all the email sending mechanism in a single post.
   I suggest you browse our source code to get an idea of how it is done:- [https://github.com/hizzle-co/noptin/issues](https://github.com/hizzle-co/noptin/issues)
 *  Thread Starter [rpbhatt](https://wordpress.org/support/users/rpbhatt/)
 * (@rpbhatt)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/campaign-process/#post-17430552)
 * I’m using ‘Noptin Addons Pack’ plugin for category filtering. The problem I’m
   having that, suppose I’ve selected ‘Cat1’ on the campaign to send the newsletter/
   mail for ‘Cat1’ category’s post only but if there is no any post available under
   that category, then sending all new published post on newsletter/mail. Facing
   no problem if any post is assigned under that category from previously but there
   will be case when there will be no post assigned under that category and at that
   case, newsletter/email should not be sent to subscribers. Please provide me solution
   with a hook. This is for post digest.
 *  Plugin Author [Noptin Newsletter Team](https://wordpress.org/support/users/picocodes/)
 * (@picocodes)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/campaign-process/#post-17430864)
 * I still don’t understand. Noptin won’t send the email when no posts are published
   in the category. Is that not the case on your end?
 * Alternatively, install yesterday’s update and then edit the email using the new
   visual editor. Add the posts block and you’ll have options to send/not send the
   email when no posts are found. You’ll also have options to only send posts published
   since the last send or to always send the latest posts.
 * If you still need a hook then you can use the “noptin_post_digest_merge_tag_query”
   to filter the query used to match posts.
 *  Thread Starter [rpbhatt](https://wordpress.org/support/users/rpbhatt/)
 * (@rpbhatt)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/campaign-process/#post-17431205)
 * Suppose at first I don’t have any posts on my site. Now I’ve published 5 new 
   posts. Suppose I’ve 2 categories i.e; Cat1 and Cat2. Now suppose I’ve assigned
   all 5 posts under Cat1. If I’ve a post digest campaign and I’ve chosen Cat2 as
   filter (Which I’ve got from ‘Noptin Addons Pack’ plugin) in there so no newsletter
   should be created and no mail should go to subscribers since I’ve published all
   my new posts under Cat1. But the problem is, still newsletter is getting created
   and sending mail to subscribers. And the problem happening only when there is
   no post available under Cat2 from previously. If there is already 10 posts available
   from previously and suppose 1 post among them is under Cat2 then it’s working
   well. So I need solution for that. Problem did not got solved even after updating
   both the main and add-on plugins.
    -  This reply was modified 2 years, 3 months ago by [rpbhatt](https://wordpress.org/support/users/rpbhatt/).
 *  Thread Starter [rpbhatt](https://wordpress.org/support/users/rpbhatt/)
 * (@rpbhatt)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/campaign-process/#post-17437433)
 * Hi,
 * Category filter issue got solved after the new add-one update. Thanks for that.
 * How to send sms through twilio when the noptin sends automated email campaigns
   from email campaigns? Specifically I need to use ‘Post Digest’ mass mail. I need
   to send the newsletter link to the subscribers after newsletter getting created.
   So basically when email will send, I need to send SMS too and newsletter link
   will be available on SMS body.

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

The topic ‘Campaign process’ is closed to new replies.

 * ![](https://ps.w.org/newsletter-optin-box/assets/icon-256x256.png?rev=3355797)
 * [Simple Newsletter Plugin - Noptin](https://wordpress.org/plugins/newsletter-optin-box/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newsletter-optin-box/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newsletter-optin-box/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletter-optin-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletter-optin-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletter-optin-box/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [rpbhatt](https://wordpress.org/support/users/rpbhatt/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/campaign-process/#post-17437433)
 * Status: resolved