hello,
I have found :
http://issues.civicrm.org/jira/browse/CRM-9698In the file:CRM/Mailing/BAO/Job.php : where do I put these lines:
// If we have enabled the Throttle option, this is the time to enforce it.
$config = CRM_Core_Config::singleton();
if($config->mailThrottleTime > 0){
usleep((int)$config->mailThrottleTime);
}
Val to put them here : Code (around 573 line after the hack to stop mailing job at run time)
I put it at the end of the function :
public function deliverGroup(&$fields, &$mailing, &$mailer, &$job_date, &$attachments) {
like this :
// hack to stop mailing job at run time, CRM-4246.
// to avoid making too many DB calls for this rare case
// lets do it when we snapshot
$status = CRM_Core_DAO::getFieldValue('CRM_Mailing_DAO_Job',
$this->id,
'status'
);
if ($status != 'Running') {
return FALSE;
}
}
}
// If we have enabled the Throttle option, this is the time to enforce it.
$config = CRM_Core_Config::singleton();
if($config->mailThrottleTime > 0){
usleep((int)$config->mailThrottleTime);
} unset($result);
// seems like a successful delivery or bounce, lets decrement error count
// only if we have smtp connection errors
if ($smtpConnectionErrors > 0) {
$smtpConnectionErrors--;
}
}
$result = $this->writeToDB($deliveredParams,
$targetParams,
$mailing,
$job_date
);
return $result;
}
Is that correct ?
Thank you for your help