FIX send mail, copy sendto don't read the list of contact
This commit is contained in:
parent
973e2253bf
commit
3dc5ffa871
@ -434,7 +434,10 @@ if (empty($reshook)) {
|
|||||||
$from = $_POST ['fromname'] . ' <' . $_POST ['frommail'] . '>';
|
$from = $_POST ['fromname'] . ' <' . $_POST ['frommail'] . '>';
|
||||||
$replyto = $_POST ['replytoname'] . ' <' . $_POST ['replytomail'] . '>';
|
$replyto = $_POST ['replytoname'] . ' <' . $_POST ['replytomail'] . '>';
|
||||||
$message = $_POST ['message'];
|
$message = $_POST ['message'];
|
||||||
$sendtocc = $_POST ['sendtocc'];
|
|
||||||
|
$receivercc = GETPOST('receivercc');
|
||||||
|
$sendtocc = ($receivercc!=='') ? $receivercc : $_POST ['sendtocc'];
|
||||||
|
|
||||||
$deliveryreceipt = $_POST ['deliveryreceipt'];
|
$deliveryreceipt = $_POST ['deliveryreceipt'];
|
||||||
|
|
||||||
if (dol_strlen($_POST ['subject']))
|
if (dol_strlen($_POST ['subject']))
|
||||||
|
|||||||
@ -1571,7 +1571,8 @@ if (empty($reshook)) {
|
|||||||
$from = $_POST['fromname'] . ' <' . $_POST['frommail'] . '>';
|
$from = $_POST['fromname'] . ' <' . $_POST['frommail'] . '>';
|
||||||
$replyto = $_POST['replytoname'] . ' <' . $_POST['replytomail'] . '>';
|
$replyto = $_POST['replytoname'] . ' <' . $_POST['replytomail'] . '>';
|
||||||
$message = $_POST['message'];
|
$message = $_POST['message'];
|
||||||
$sendtocc = $_POST['sendtocc'];
|
$receivercc = GETPOST('receivercc');
|
||||||
|
$sendtocc = ($receivercc!=='') ? $receivercc : $_POST ['sendtocc'];
|
||||||
$deliveryreceipt = $_POST['deliveryreceipt'];
|
$deliveryreceipt = $_POST['deliveryreceipt'];
|
||||||
|
|
||||||
if ($action == 'send') {
|
if ($action == 'send') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user