Fix: problème avec le champs CC

This commit is contained in:
Regis Houssin 2006-05-04 13:58:00 +00:00
parent e85d68ca0a
commit addd7f49ad
3 changed files with 48 additions and 21 deletions

View File

@ -256,18 +256,25 @@ if ($_POST['action'] == 'send')
$replyto = $_POST['replytoname']. ' <' . $_POST['replytomail'].'>'; $replyto = $_POST['replytoname']. ' <' . $_POST['replytomail'].'>';
$message = $_POST['message']; $message = $_POST['message'];
$sendtocc = $_POST['sendtocc']; $sendtocc = $_POST['sendtocc'];
if ($_POST['action'] == 'send') if ($_POST['action'] == 'send')
{ {
$subject = $_POST['subject']; $subject = $_POST['subject'];
if($subject == '') if($subject == '')
{
$subject = $langs->trans('Propal').' '.$propal->ref; $subject = $langs->trans('Propal').' '.$propal->ref;
}
$actiontypeid=3; $actiontypeid=3;
$actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.<br>'; $actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.<br>';
if ($message) if ($message)
{ {
$actionmsg.='Texte utilisé dans le corps du message:<br>'; $actionmsg.='Texte utilisé dans le corps du message:<br>';
$actionmsg.=$message; $actionmsg.=$message;
} }
$actionmsg2='Envoi Propal par mail'; $actionmsg2='Envoi Propal par mail';
} }

View File

@ -349,16 +349,26 @@ if ($_POST['action'] == 'send')
$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'];
if ($_POST['action'] == 'send') if ($_POST['action'] == 'send')
{
$subject = $_POST['subject'];
if($subject == '')
{ {
$subject = $langs->trans('Order').' '.$commande->ref; $subject = $langs->trans('Order').' '.$commande->ref;
}
$actiontypeid=3; $actiontypeid=3;
$actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.<br>'; $actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.<br>';
if ($message) if ($message)
{ {
$actionmsg.='Texte utilisé dans le corps du message:<br>'; $actionmsg.='Texte utilisé dans le corps du message:<br>';
$actionmsg.=$message; $actionmsg.=$message;
} }
$actionmsg2='Envoi commande par mail'; $actionmsg2='Envoi commande par mail';
} }

View File

@ -508,18 +508,28 @@ if ($_POST['action'] == 'send' || $_POST['action'] == 'relance')
$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'];
if ($_POST['action'] == 'send') if ($_POST['action'] == 'send')
{ {
if(strlen($_POST['subject'])) if(strlen($_POST['subject']))
{
$subject = $_POST['subject']; $subject = $_POST['subject'];
}
else else
{
$subject = $langs->trans('Bill').' '.$fac->ref; $subject = $langs->trans('Bill').' '.$fac->ref;
}
$actiontypeid=9; $actiontypeid=9;
$actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.<br>'; $actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.<br>';
if ($message) {
if ($message)
{
$actionmsg.='Texte utilisé dans le corps du message:<br>'; $actionmsg.='Texte utilisé dans le corps du message:<br>';
$actionmsg.=$message; $actionmsg.=$message;
} }
$actionmsg2='Envoi facture par mail'; $actionmsg2='Envoi facture par mail';
} }
if ($_POST['action'] == 'relance') if ($_POST['action'] == 'relance')