Skip to content
Snippets Groups Projects
Commit a8d7b3c0 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Pb sur le destinataire des envois de factures.

parent 8fb86eba
No related branches found
No related tags found
No related merge requests found
......@@ -809,7 +809,6 @@ if ($_GET["propalid"])
$formmail->fromname = $user->fullname;
$formmail->frommail = $user->email;
$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->withcc=1;
$formmail->withtopic=1;
......
......@@ -1385,13 +1385,18 @@ else
print '<br>';
print_titre("Envoyer une relance par mail");
$liste[0]="&nbsp;";
foreach ($soc->contact_email_array() as $key=>$value) {
$liste[$key]=$value;
}
// Créé l'objet formulaire mail
include_once("../html.formmail.class.php");
$formmail = new FormMail($db);
$formmail->fromname = $user->fullname;
$formmail->frommail = $user->email;
$formmail->withfrom=1;
$formmail->withto=array_merge(array("&nbsp;"),$soc->contact_email_array());
$formmail->withto=$liste;
$formmail->withcc=1;
$formmail->withtopic=1;
$formmail->withfile=1;
......
......@@ -24,6 +24,6 @@ MailingStatusDraft=Draft
MailingStatusValidated=Validated
MailingStatusApproved=Approved
MailingStatusSent=Sent
MailSuccessfulySent=Mail successfuly sent
MailSuccessfulySent=Mail successfuly sent (from %s to %s)
ErrorMailRecipientIsEmpty=Mail recipient is empty
......@@ -24,5 +24,5 @@ MailingStatusDraft=Brouillon
MailingStatusValidated=Valid
MailingStatusApproved=Approv
MailingStatusSent=Envoy
MailSuccessfulySent=Mail envoy avec succs
MailSuccessfulySent=Mail envoy avec succs (de la part de %s pour %s)
ErrorMailRecipientIsEmpty=Le mail du destinataire est vide
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment