• Resolved rpbhatt

    (@rpbhatt)


    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 10 months, 1 week ago by rpbhatt.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brian Mutende

    (@picocodes)

    Hi @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

    Thread Starter rpbhatt

    (@rpbhatt)

    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 Brian Mutende

    (@picocodes)

    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

    (@rpbhatt)

    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 9 months, 2 weeks ago by rpbhatt.
    Thread Starter rpbhatt

    (@rpbhatt)

    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.