1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 11:22:42 +01:00

email.auto_reply.subject hook

This commit is contained in:
FreeScout 2021-07-28 22:49:36 -07:00
parent 284d8f07fa
commit e8e86d1bf4

View File

@ -56,8 +56,10 @@ class AutoReply extends Mailable
]; ];
// Set variables // Set variables
$subject = \App\Misc\Mail::replaceMailVars($this->mailbox->auto_reply_subject, $data); $subject = \MailHelper::replaceMailVars($this->mailbox->auto_reply_subject, $data);
$view_params['auto_reply_message'] = \App\Misc\Mail::replaceMailVars($this->mailbox->auto_reply_message, $data); $view_params['auto_reply_message'] = \MailHelper::replaceMailVars($this->mailbox->auto_reply_message, $data);
$subject = \Eventy::filter('email.auto_reply.subject', $subject, $this->conversation);
$message = $this->subject($subject) $message = $this->subject($subject)
->view('emails/customer/auto_reply', $view_params) ->view('emails/customer/auto_reply', $view_params)