CiviCRM Send Email action for individual contact fails with error: "Please do not use this task to send a lot of emails (greater than ). " - indicates that there is no sending limit set
CiviCRM Send Email action for individual contact fails with error: "Please do not use this task to send a lot of emails (greater than ). " - indicates that there is no sending limit set.
For older CiviCRM sites, there is no setting for simple_mail_limit and the code does not have any default value, resulting in null value being returned and the condition failing.
protected function bounceIfSimpleMailLimitExceeded($count) {
$limit = Civi::settings()->get('simple_mail_limit');
if ($count > $limit) {
CRM_Core_Error::statusBounce(ts('Please do not use this task to send a lot of emails (greater than %1). Many countries have legal requirements when sending bulk emails and the CiviMail framework has opt out functionality and domain tokens to help meet these.',
[1 => $limit]
));
}
}
Agileware Ref: CIVICRM-1615