mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
Bugfix ticket email draft, set sender and sendername later when sending
This commit is contained in:
parent
c9a24e7f75
commit
99eed95d85
@ -680,9 +680,6 @@ class Ticket {
|
|||||||
|
|
||||||
$this->app->Tpl->Set('EMAIL_AN', htmlentities($recv_messages[0]['mail']));
|
$this->app->Tpl->Set('EMAIL_AN', htmlentities($recv_messages[0]['mail']));
|
||||||
|
|
||||||
$senderName = $this->app->User->GetName()." (".$this->app->erp->GetFirmaAbsender().")";
|
|
||||||
$senderAddress = $this->app->erp->GetFirmaMail();
|
|
||||||
|
|
||||||
$to = "";
|
$to = "";
|
||||||
$cc = "";
|
$cc = "";
|
||||||
|
|
||||||
@ -783,12 +780,15 @@ class Ticket {
|
|||||||
$cc = null;
|
$cc = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$senderName = $this->app->User->GetName()." (".$this->app->erp->GetFirmaAbsender().")";
|
||||||
|
$senderAddress = $this->app->erp->GetFirmaMail();
|
||||||
|
|
||||||
// function MailSend($from,$from_name,$to,$to_name,$betreff,$text,$files="",$projekt="",$signature=true,$cc="",$bcc="", $system = false)
|
// function MailSend($from,$from_name,$to,$to_name,$betreff,$text,$files="",$projekt="",$signature=true,$cc="",$bcc="", $system = false)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
$this->app->erp->MailSend(
|
$this->app->erp->MailSend(
|
||||||
$drafted_messages[0]['mail_replyto'],
|
$senderAddress,
|
||||||
$drafted_messages[0]['verfasser_replyto'],
|
$senderName,
|
||||||
$to,
|
$to,
|
||||||
$to,
|
$to,
|
||||||
htmlentities($drafted_messages[0]['betreff']),
|
htmlentities($drafted_messages[0]['betreff']),
|
||||||
@ -803,7 +803,7 @@ class Ticket {
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
// Update message in ticket_nachricht
|
// Update message in ticket_nachricht
|
||||||
$sql = "UPDATE `ticket_nachricht` SET `zeitausgang` = NOW(), `betreff` = '".$drafted_messages[0]['betreff']."' WHERE id = ".$drafted_messages[0]['id'];
|
$sql = "UPDATE `ticket_nachricht` SET `zeitausgang` = NOW(), `betreff` = '".$drafted_messages[0]['betreff']."', `verfasser` = '$senderName', `verfasser_replyto` = '$senderName', `mail_replyto` = '$senderAddress' WHERE id = ".$drafted_messages[0]['id'];
|
||||||
$this->app->DB->Insert($sql);
|
$this->app->DB->Insert($sql);
|
||||||
|
|
||||||
$msg .= '<div class="info">Die E-Mail wurde erfolgreich versendet an '.$input['email_an'].'.';
|
$msg .= '<div class="info">Die E-Mail wurde erfolgreich versendet an '.$input['email_an'].'.';
|
||||||
|
Loading…
Reference in New Issue
Block a user