From e8e86d1bf4f92442c4804575e2cde925640fc0c9 Mon Sep 17 00:00:00 2001 From: FreeScout Date: Wed, 28 Jul 2021 22:49:36 -0700 Subject: [PATCH] email.auto_reply.subject hook --- app/Mail/AutoReply.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Mail/AutoReply.php b/app/Mail/AutoReply.php index 91745fde..eb050e20 100644 --- a/app/Mail/AutoReply.php +++ b/app/Mail/AutoReply.php @@ -56,8 +56,10 @@ class AutoReply extends Mailable ]; // Set variables - $subject = \App\Misc\Mail::replaceMailVars($this->mailbox->auto_reply_subject, $data); - $view_params['auto_reply_message'] = \App\Misc\Mail::replaceMailVars($this->mailbox->auto_reply_message, $data); + $subject = \MailHelper::replaceMailVars($this->mailbox->auto_reply_subject, $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) ->view('emails/customer/auto_reply', $view_params)