Fix: Pb sur le destinataire des envois de factures.
This commit is contained in:
parent
8fb86eba2c
commit
a8d7b3c0c4
@ -809,7 +809,6 @@ if ($_GET["propalid"])
|
|||||||
$formmail->fromname = $user->fullname;
|
$formmail->fromname = $user->fullname;
|
||||||
$formmail->frommail = $user->email;
|
$formmail->frommail = $user->email;
|
||||||
$formmail->withfrom=1;
|
$formmail->withfrom=1;
|
||||||
// $formmail->withto=array_merge(array(" "),$soc->contact_email_array());
|
|
||||||
$formmail->withto=ucfirst(strtolower($obj->firstname)) . " " . ucfirst(strtolower($obj->name)) . " <$obj->email>";
|
$formmail->withto=ucfirst(strtolower($obj->firstname)) . " " . ucfirst(strtolower($obj->name)) . " <$obj->email>";
|
||||||
$formmail->withcc=1;
|
$formmail->withcc=1;
|
||||||
$formmail->withtopic=1;
|
$formmail->withtopic=1;
|
||||||
|
|||||||
@ -1385,13 +1385,18 @@ else
|
|||||||
print '<br>';
|
print '<br>';
|
||||||
print_titre("Envoyer une relance par mail");
|
print_titre("Envoyer une relance par mail");
|
||||||
|
|
||||||
|
$liste[0]=" ";
|
||||||
|
foreach ($soc->contact_email_array() as $key=>$value) {
|
||||||
|
$liste[$key]=$value;
|
||||||
|
}
|
||||||
|
|
||||||
// Créé l'objet formulaire mail
|
// Créé l'objet formulaire mail
|
||||||
include_once("../html.formmail.class.php");
|
include_once("../html.formmail.class.php");
|
||||||
$formmail = new FormMail($db);
|
$formmail = new FormMail($db);
|
||||||
$formmail->fromname = $user->fullname;
|
$formmail->fromname = $user->fullname;
|
||||||
$formmail->frommail = $user->email;
|
$formmail->frommail = $user->email;
|
||||||
$formmail->withfrom=1;
|
$formmail->withfrom=1;
|
||||||
$formmail->withto=array_merge(array(" "),$soc->contact_email_array());
|
$formmail->withto=$liste;
|
||||||
$formmail->withcc=1;
|
$formmail->withcc=1;
|
||||||
$formmail->withtopic=1;
|
$formmail->withtopic=1;
|
||||||
$formmail->withfile=1;
|
$formmail->withfile=1;
|
||||||
|
|||||||
@ -24,6 +24,6 @@ MailingStatusDraft=Draft
|
|||||||
MailingStatusValidated=Validated
|
MailingStatusValidated=Validated
|
||||||
MailingStatusApproved=Approved
|
MailingStatusApproved=Approved
|
||||||
MailingStatusSent=Sent
|
MailingStatusSent=Sent
|
||||||
MailSuccessfulySent=Mail successfuly sent
|
MailSuccessfulySent=Mail successfuly sent (from %s to %s)
|
||||||
ErrorMailRecipientIsEmpty=Mail recipient is empty
|
ErrorMailRecipientIsEmpty=Mail recipient is empty
|
||||||
|
|
||||||
|
|||||||
@ -24,5 +24,5 @@ MailingStatusDraft=Brouillon
|
|||||||
MailingStatusValidated=Validé
|
MailingStatusValidated=Validé
|
||||||
MailingStatusApproved=Apprové
|
MailingStatusApproved=Apprové
|
||||||
MailingStatusSent=Envoyé
|
MailingStatusSent=Envoyé
|
||||||
MailSuccessfulySent=Mail envoyé avec succès
|
MailSuccessfulySent=Mail envoyé avec succès (de la part de %s pour %s)
|
||||||
ErrorMailRecipientIsEmpty=Le mail du destinataire est vide
|
ErrorMailRecipientIsEmpty=Le mail du destinataire est vide
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user