• Resolved marksu2017

    (@marksu2017)


    Greetings,

    on my hosting, the plugin sends emails out extremely slowly, meaning that the page loads for 5 minutes after publishing a new article and occasionally does not reload at all. Using the cron feature somewhat mitigates this, but still, users occasionally receive emails twice or not at all.

    Could we have a third send option, which sends only -say- 5 mails at a time, but from AJAX-driven requests? This would have 2 advantages:
    a) faster publishing
    b) author is informed about email send progress

    Thoughts?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Icegram

    (@icegram)

    Hi @marksu2017,

    Looks like you have a huge list of Subscribers. How many subscribers you have currently?

    With respect to prevent slow sending of emails, you should use Cron method and target Cron url to send emails only once a day.
    Also, we have noted down your suggestions to send emails faster and we might consider the same in later versions of Email Subscribers.

    Thread Starter marksu2017

    (@marksu2017)

    How many subscribers you have currently?

    Erm, about that would be 47 active subscriptions. As I said, hosting is a bit slow. I don’t know how you compose the mail, but perhaps there’s a bottleneck there also. It used to work much faster when I only had like 20 subscribers.

    With respect to prevent slow sending of emails, you should use Cron method and target Cron url to send emails only once a day.

    I tried that, unfortunately to no avail. The cron system is equally slow. Moreover, it seems to not mark subscribers as already sent, when the connection closes mid-sending. Thus, some subscribers would receive the email twice.

    Unfortunately, as this is a paid hosting, I cannot profile or switch on debugging or similar.

    Plugin Author Icegram

    (@icegram)

    Hi @marksu2017,

    As your subscribers count will increase, your hosting will be unable to handle the requests.
    So maybe you can consider either switching your hosting OR use some freely available online webcron services.

    Thread Starter marksu2017

    (@marksu2017)

    external cron

    that wouldn’t do any good, since this would only trigger the local sending of mails. You still use wp_mail() for sending, even for cron jobs.

    But I found something: there is a sleep(60) in email-subscribers/classes/es-sendmail.php after every 25 emails sent. This could definitely hinder sending mails when sending directly. I’ve commented that out, much better now.

    But still, AJAX sending with progress bar would be a nice option.

    • This reply was modified 9 years, 5 months ago by marksu2017.
    Plugin Author Icegram

    (@icegram)

    Hi @marksu2017,

    sleep(60) is used to re-establish connection. Commenting it is not a good idea, but if it works for you, than it’s ok.

    We’ll consider AJAX sending method for later versions.

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

The topic ‘Feature Request: AJAX mail sending’ is closed to new replies.