Add topic of mail in message
This commit is contained in:
parent
3065772b70
commit
a4c3b86d9f
@ -349,22 +349,16 @@ if ($_POST['action'] == 'send')
|
||||
|
||||
if ($_POST['action'] == 'send')
|
||||
{
|
||||
$subject = $_POST['subject'];
|
||||
|
||||
if($subject == '')
|
||||
{
|
||||
$subject = $langs->transnoentities('Propal').' '.$propal->ref;
|
||||
}
|
||||
|
||||
if (strlen($_POST['subject'])) $subject = $_POST['subject'];
|
||||
else $subject = $langs->transnoentities('Propal').' '.$propal->ref;
|
||||
$actiontypecode='AC_PROP';
|
||||
$actionmsg = $langs->transnoentities('MailSentBy').' '.$from.' '.$langs->transnoentities('To').' '.$sendto.".\n";
|
||||
|
||||
if ($message)
|
||||
{
|
||||
$actionmsg.=$langs->transnoentities('TextUsedInTheMessageBody').":\n";
|
||||
$actionmsg.=$message;
|
||||
}
|
||||
|
||||
if ($message)
|
||||
{
|
||||
$actionmsg.=$langs->transnoentities('MailTopic').": ".$subject."\n";
|
||||
$actionmsg.=$langs->transnoentities('TextUsedInTheMessageBody').":\n";
|
||||
$actionmsg.=$message;
|
||||
}
|
||||
$actionmsg2=$langs->transnoentities('Action'.$actiontypecode);
|
||||
}
|
||||
|
||||
|
||||
@ -999,32 +999,26 @@ if (($_POST['action'] == 'send' || $_POST['action'] == 'relance') && ! $_POST['c
|
||||
|
||||
if ($_POST['action'] == 'send')
|
||||
{
|
||||
if(strlen($_POST['subject']))
|
||||
{
|
||||
$subject = $_POST['subject'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$subject = $langs->trans('Bill').' '.$fac->ref;
|
||||
}
|
||||
|
||||
if (strlen($_POST['subject'])) $subject = $_POST['subject'];
|
||||
else $subject = $langs->transnoentities('Bill').' '.$fac->ref;
|
||||
$actiontypecode='AC_FAC';
|
||||
$actionmsg=$langs->transnoentities('MailSentBy').' '.$from.' '.$langs->transnoentities('To').' '.$sendto.".\n";
|
||||
|
||||
if ($message)
|
||||
{
|
||||
$actionmsg.=$langs->transnoentities('MailTopic').": ".$subject."\n";
|
||||
$actionmsg.=$langs->transnoentities('TextUsedInTheMessageBody').":\n";
|
||||
$actionmsg.=$message;
|
||||
}
|
||||
|
||||
$actionmsg2=$langs->transnoentities('Action'.$actiontypecode);
|
||||
}
|
||||
if ($_POST['action'] == 'relance')
|
||||
{
|
||||
$subject = 'Relance facture '.$fac->ref;
|
||||
if (strlen($_POST['subject'])) $subject = $_POST['subject'];
|
||||
else $subject = $langs->transnoentities('Relance facture '.$fac->ref);
|
||||
$actiontypecode='AC_FAC';
|
||||
$actionmsg=$langs->transnoentities('MailSentBy').' '.$from.' '.$langs->transnoentities('To').' '.$sendto.".\n";
|
||||
if ($message) {
|
||||
$actionmsg.=$langs->transnoentities('MailTopic').": ".$subject."\n";
|
||||
$actionmsg.=$langs->transnoentities('TextUsedInTheMessageBody').":\n";
|
||||
$actionmsg.=$message;
|
||||
}
|
||||
@ -1063,7 +1057,7 @@ if (($_POST['action'] == 'send' || $_POST['action'] == 'relance') && ! $_POST['c
|
||||
$fac->actionmsg = $actionmsg;
|
||||
$fac->actionmsg2= $actionmsg2;
|
||||
$fac->facid=$fac->id;
|
||||
|
||||
|
||||
// Appel des triggers
|
||||
include_once(DOL_DOCUMENT_ROOT . "/interfaces.class.php");
|
||||
$interface=new Interfaces($db);
|
||||
|
||||
@ -390,10 +390,10 @@ CloseWindow=Close window
|
||||
Question=Question
|
||||
Response=Response
|
||||
Priority=Priority
|
||||
MailSentBy=Mail sent by
|
||||
TextUsedInTheMessageBody=Text used in the message body
|
||||
SendAcknowledgementByMail=Send Ack. by mail
|
||||
NoEMail=No EMail
|
||||
MailSentBy=Email sent by
|
||||
TextUsedInTheMessageBody=Email body
|
||||
SendAcknowledgementByMail=Send Ack. by email
|
||||
NoEMail=No email
|
||||
Owner=Owner
|
||||
DetectedVersion=Detected version
|
||||
FollowingConstantsWillBeSubstituted=Following constants will be substitute with corresponding value.
|
||||
|
||||
@ -393,7 +393,7 @@ Question=Question
|
||||
Response=Réponse
|
||||
Priority=Priorité
|
||||
MailSentBy=Mail envoyé par
|
||||
TextUsedInTheMessageBody=Texte utilisé dans le corps du message
|
||||
TextUsedInTheMessageBody=Corps du mail
|
||||
SendAcknowledgementByMail=Envoi A.R. par mail
|
||||
NoEMail=Pas d'email
|
||||
Owner=Propriétaire
|
||||
|
||||
Loading…
Reference in New Issue
Block a user