Fix delay to wait between email for emailing refused float.
This commit is contained in:
parent
360a85cbbc
commit
739695c442
@ -125,7 +125,7 @@ print '</td></tr>';
|
|||||||
|
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("MailingDelay").'</td><td>';
|
print $langs->trans("MailingDelay").'</td><td>';
|
||||||
print '<input size="32" type="text" name="MAILING_DELAY" value="'.$conf->global->MAILING_DELAY.'">';
|
print '<input class="width75" type="text" name="MAILING_DELAY" value="'.$conf->global->MAILING_DELAY.'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -346,7 +346,7 @@ if (empty($reshook))
|
|||||||
if (!empty($conf->global->MAILING_DELAY))
|
if (!empty($conf->global->MAILING_DELAY))
|
||||||
{
|
{
|
||||||
dol_syslog("Wait a delay of MAILING_DELAY=".$conf->global->MAILING_DELAY);
|
dol_syslog("Wait a delay of MAILING_DELAY=".$conf->global->MAILING_DELAY);
|
||||||
sleep($conf->global->MAILING_DELAY);
|
usleep((float) $conf->global->MAILING_DELAY * 1000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
//test if CHECK READ change statut prospect contact
|
//test if CHECK READ change statut prospect contact
|
||||||
|
|||||||
@ -318,7 +318,7 @@ if ($resql) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($conf->global->MAILING_DELAY)) {
|
if (!empty($conf->global->MAILING_DELAY)) {
|
||||||
sleep($conf->global->MAILING_DELAY);
|
usleep((float) $conf->global->MAILING_DELAY * 1000000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user