FIX send mail, copy sendto don't read the list of contact

This commit is contained in:
Alexis Algoud 2015-05-13 18:05:26 +02:00
parent 973e2253bf
commit 3dc5ffa871
2 changed files with 6 additions and 2 deletions

View File

@ -434,7 +434,10 @@ if (empty($reshook)) {
$from = $_POST ['fromname'] . ' <' . $_POST ['frommail'] . '>';
$replyto = $_POST ['replytoname'] . ' <' . $_POST ['replytomail'] . '>';
$message = $_POST ['message'];
$sendtocc = $_POST ['sendtocc'];
$receivercc = GETPOST('receivercc');
$sendtocc = ($receivercc!=='') ? $receivercc : $_POST ['sendtocc'];
$deliveryreceipt = $_POST ['deliveryreceipt'];
if (dol_strlen($_POST ['subject']))

View File

@ -1571,7 +1571,8 @@ if (empty($reshook)) {
$from = $_POST['fromname'] . ' <' . $_POST['frommail'] . '>';
$replyto = $_POST['replytoname'] . ' <' . $_POST['replytomail'] . '>';
$message = $_POST['message'];
$sendtocc = $_POST['sendtocc'];
$receivercc = GETPOST('receivercc');
$sendtocc = ($receivercc!=='') ? $receivercc : $_POST ['sendtocc'];
$deliveryreceipt = $_POST['deliveryreceipt'];
if ($action == 'send') {