vegardlr
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Easy Post Mailer] WP Mailer sends multiple emails for each postNice to hear from you, Richard Leishman. I see you have enough to ponder upon. I will await further input from you or other users. I have som ideas to how I can test the scripts behaviour on our web serveres, but will have to let it wait until later.
Forum: Plugins
In reply to: [WP Easy Post Mailer] WP Mailer sends multiple emails for each postalannamc, sorry for not getting back top you sooner, super busy days at work! Good to hear you got progress without batching. I am, however, dependent on batching and will look into these issues again later when I have the time. Still hoping the devs of WP Mailer finds this and give their view!
Forum: Plugins
In reply to: [WP Easy Post Mailer] WP Mailer sends multiple emails for each postBut of course, silly of me not to write in the first case!
Since the hosts of my domain have an upper limit to the number of emails I can send every hour of 250, I use the options given with WP Mailer to stop and wait for 3600 seconds for every 200’th email sent. This functionality does not seem to work, as it continues to send emails without stopping at 200, 400, and so on…
Forum: Plugins
In reply to: [WP Easy Post Mailer] WP Mailer sends multiple emails for each postI found a hacky way of solving this, although it would be nice to have this method confirmed with the devs, cause WP Mailer on my site has one other strange behaviour that might be due to my hack.
The hack: Edited wp-mailer/mailer/send.php, by adding a comment before the line with “$start = 0”, i.e.:
function wpm_send_job($job) {
if (is_int($job)) $job = wpm_get_job($job);
$post = get_post($job->job_post_id);
if ($post->post_status != ‘publish’) return;$buffer = get_option(‘wpm_batchsize’);
$pause = get_option(‘wpm_batchpause’);
$start = $job->job_sent?$job->job_sent:0;
// $start = 0;
$finish = wpm_get_subscriber_count();
…