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,19 +256,26 @@ 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 == '')
$subject = $langs->trans('Propal').' '.$propal->ref; if($subject == '')
$actiontypeid=3; {
$actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.<br>'; $subject = $langs->trans('Propal').' '.$propal->ref;
if ($message) }
{
$actionmsg.='Texte utilisé dans le corps du message:<br>'; $actiontypeid=3;
$actionmsg.=$message; $actionmsg ='Mail envoyé par '.$from.' à '.$sendto.'.<br>';
}
$actionmsg2='Envoi Propal par mail'; if ($message)
{
$actionmsg.='Texte utilisé dans le corps du message:<br>';
$actionmsg.=$message;
}
$actionmsg2='Envoi Propal par mail';
} }
$filepath[0] = $file; $filepath[0] = $file;

View File

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

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')