By Sandi Beach on Friday, 21 July 2017
Posted in General
Replies 3
Likes 0
Views 255
Votes 0
Each cron run is only sending 20 email notifications - where can we configure this? We are using SendGrid and can send much larger numbers (and we need to!).

Please advise. Not finding it in the Settings.
Hello Sandi,

We wouldn't recommend setting anything higher than 20 at a go because even though sendgrid can send more, if you do intend to send more e-mails within a specific threshold, some mail servers would flag your transactional e-mails as spam.

Anyway, what you can do is to edit the file /components/com_easyblog/services/cron.php and locate the code below at line 22,

[gist]
$result['emails'] = EB::mailer()->dispatch();
[/gist]

Replace it with,

[gist]
$result['emails'] = EB::mailer()->dispatch(50);
[/gist]

Replace 50 with your desired number of e-mails.
·
Friday, 21 July 2017 03:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark.

Didn't this used to be a configuration setting? We have another site with an older version of EasyBlog where this can be configured.
·
Friday, 21 July 2017 04:25
·
0 Likes
·
0 Votes
·
0 Comments
·
We will add back that setting in next release version.
·
Friday, 21 July 2017 13:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post