mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Fix reply to in ticket emails
This commit is contained in:
@@ -2823,8 +2823,10 @@ class Ticket extends CommonObject
|
|||||||
|
|
||||||
$from = getDolGlobalString('TICKET_NOTIFICATION_EMAIL_FROM');
|
$from = getDolGlobalString('TICKET_NOTIFICATION_EMAIL_FROM');
|
||||||
|
|
||||||
|
$replyto = getDolGlobalString('TICKET_NOTIFICATION_EMAIL_REPLYTO');
|
||||||
|
|
||||||
// don't try to send email if no recipient
|
// don't try to send email if no recipient
|
||||||
$this->sendTicketMessageByEmail($subject, $message, 0, $sendto, $listofpaths, $listofmimes, $listofnames, array(), $from);
|
$this->sendTicketMessageByEmail($subject, $message, 0, $sendto, $listofpaths, $listofmimes, $listofnames, array(), $from, $replyto);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -3017,7 +3019,9 @@ class Ticket extends CommonObject
|
|||||||
if (!empty($sendto)) {
|
if (!empty($sendto)) {
|
||||||
$from = getDolGlobalString('TICKET_NOTIFICATION_EMAIL_FROM');
|
$from = getDolGlobalString('TICKET_NOTIFICATION_EMAIL_FROM');
|
||||||
|
|
||||||
$result = $this->sendTicketMessageByEmail($subject, $message, 0, $sendto, $listofpaths, $listofmimes, $listofnames, $sendtocc, $from);
|
$replyto = getDolGlobalString('TICKET_NOTIFICATION_EMAIL_REPLYTO');
|
||||||
|
|
||||||
|
$result = $this->sendTicketMessageByEmail($subject, $message, 0, $sendto, $listofpaths, $listofmimes, $listofnames, $sendtocc, $from, $replyto);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
// update last_msg_sent date of ticket (for last message sent to external users)
|
// update last_msg_sent date of ticket (for last message sent to external users)
|
||||||
$this->date_last_msg_sent = dol_now();
|
$this->date_last_msg_sent = dol_now();
|
||||||
|
|||||||
Reference in New Issue
Block a user