FIX send mail, copy sendto don't read the list of contact
This commit is contained in:
parent
973e2253bf
commit
3dc5ffa871
2 changed files with 6 additions and 2 deletions
|
|
@ -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']))
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue