• Resolved wouterdoorn

    (@wouterdoorn)


    HI,

    Our automated email campaign doesnt send to all subscribers. I am not sure what is causing the issue.

    We have two sites in multiste setup that are configured identically, only language differs. We are using google’s mnail server (we have a nonprofit account there, so its more ore less the busniness version) and have confifgured Post SMTP plugin with smtp-relay.gmail.com. I hae it up to send unlimited emails, as far as I found this should ne possible.

    If I send a test campaing everything works fine. The automated post-digest which hase been activated for all users on both sites does not work. On the Dutch site it has send 26 emails and is still sending (it startes on the 28th of the month) but nothing happens. On the English site 0 mails have been send since the 28th and it is still ‘sending’.

    In the Post SMTP email log I see no error, the 26 email on the Dutch site were sen correctly.

    In my server logs I see no errors that seem to rlate to noptin or smtp.

    Any suggestions?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter wouterdoorn

    (@wouterdoorn)

    Sorry for the typo’s in my previous post…

    I think the issue is with the cron. I previously had the issue mentioned by others that lots of campaings where being send which was fixed by an update a few weeks ago.

    I installed WP Control plugin and if I run the noptin_send_post_digest cron manually it seems to work just fine (at least the campaing is ‘send’ to all subscribers instead of ‘sending’).

    Is there a permanent way to fix this?

    Plugin Author Brian Mutende

    (@picocodes)

    When an automated post-digest campaign is ready to send it should generate a normal “newsletter” campaign and save it to Noptin > Email Campaigns > Newsletters. What do you see there?

    Plugin Author Brian Mutende

    (@picocodes)

    Also try setting up an external CRON as shown here:- https://wpspeedmatters.com/external-cron-jobs-in-wordpress/

    Thread Starter wouterdoorn

    (@wouterdoorn)

    At Noptin > Email Campaigns > Newsletters on both sites I saw the campaing which was ‘sending’ (and there was an option to stop it). The English campaign had send the newsletter to 0 subscribers in 2 days. The Dutch campaign was send to 26 subscribers in 2 days. So it just froze.

    After I manually ran the cron on the Dutch version the newsletter was send to all subscribers aftert which it stated ‘send’. On the Englisgh site nothing happend after manually running the cron through WP Control.

    I have now setup an external cron in Plesk. Is there a way to send the automated campaign again? I tried creating a standard newsleteter but the post digest does not work there.

    Plugin Author Brian Mutende

    (@picocodes)

    Create a duplicate of the previously sent campaign, preview it, send yourself a test email then send the duplicate.

    NB: Scan your PHP error logs and let us know if you can spot any errors relating to Noptin.

    Thread Starter wouterdoorn

    (@wouterdoorn)

    the last couple of months I have been trying to get it to work without succes. I even installed a fresh server with a fresh wordpress install, manually copied all content and then reïnstalled the plugins, but it didn’t work. I tried it with the normal cron and with a server cron (through plesk). When I run the noptin_send_post_digest cron manually the newsletter is send to only 40 members on the Englis (main) site and 0 members on the Dutch subfolder site. I have no errors in my server log (I can actually see the cron with status code 200) and the Noptin debug log states: ‘Sending the campaign: “Check out our latest blog posts” ‘ with no further errors. I use FluentSMTP with microsoftSMTP, test emails are send without issues and I see no failed emails.

    I am at a loss why it just doesn’t work. Any suggestions?

    Thread Starter wouterdoorn

    (@wouterdoorn)

    Could it be an incompatibility with a multisite subfolder setup? I just found out that when I stop both campaigns (clicking on the sending-stop ‘stop’ button in the email campaings window) and then restart one, it start working, as soon as I start the campaign on the other website the first one stops and it doesn’t resume even if the other campaing finishes. I can get it to work by thhen stopping and restarting again. Somehow the two campaigns in this multisite setup (with the same send date and time) seem to influence each other.

    NB: The emails that are send after the stop/send seem ot have a issues in the layout when compared to the test emails I send. When I use chrome dev tools in gmail it looks like the p tag is being removed in the actual newsletter. And while the test email contained 10 posts in the digest the acutal newsletter (which got send twice) contained first 2 and then 0 posts.

    • This reply was modified 1 year, 2 months ago by wouterdoorn.
    • This reply was modified 1 year, 2 months ago by wouterdoorn.
    Plugin Author Brian Mutende

    (@picocodes)

    I’m testing on a multisite set-up. Will let you know once I can reproduce the issue and fix it.

    Plugin Author Brian Mutende

    (@picocodes)

    The multisite issue has been fixed:- https://github.com/hizzle-co/noptin/commit/45573c517d64b8921c24790908d3e67f2fd148f4

    We’ll release an update.

    You say that emails on the main site only get sent to 40 subscribers. If you have more than 40 subscribers on the main site then open a new ticket and we’ll take a look.

    Thread Starter wouterdoorn

    (@wouterdoorn)

    Thanks. I do have a lot more then 40 subscribers, but it might just have been the multisite issue that kept the plugin from sending the newsletter to everyone. I will test this first after the update.

    What’s stranger is the difference in the email html between the test email and the newsletter (the <p> tags are available in the test email but get removed in the newsletter itself), but I can circumvent this by changing the style for <td> and removing the <p> tags in the file.

    So for now, no more questions :). Thanks for the quick support.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘emails not being send’ is closed to new replies.