Revert text on reply to email

This commit is contained in:
Will Browning 2020-02-11 10:41:08 +00:00
parent 32190835fb
commit 824eadb7c2

View file

@ -66,6 +66,9 @@ class ReplyToEmail extends Mailable implements ShouldQueue
$email = $this $email = $this
->from($fromEmail, $fromName) ->from($fromEmail, $fromName)
->subject(base64_decode($this->emailSubject)) ->subject(base64_decode($this->emailSubject))
->text('emails.reply.text')->with([
'text' => base64_decode($this->emailText)
])
->withSwiftMessage(function ($message) use ($returnPath) { ->withSwiftMessage(function ($message) use ($returnPath) {
$message->getHeaders() $message->getHeaders()
->addTextHeader('Return-Path', config('anonaddy.return_path')); ->addTextHeader('Return-Path', config('anonaddy.return_path'));
@ -81,11 +84,12 @@ class ReplyToEmail extends Mailable implements ShouldQueue
$email->replyTo($this->alias->email, $fromName); $email->replyTo($this->alias->email, $fromName);
} }
if ($this->emailText) { // TODO fix issue with replies that are already encrypted.
/* if ($this->emailText) {
$email->text('emails.reply.text')->with([ $email->text('emails.reply.text')->with([
'text' => base64_decode($this->emailText) 'text' => base64_decode($this->emailText)
]); ]);
} } */
if ($this->emailHtml) { if ($this->emailHtml) {
$email->view('emails.reply.html')->with([ $email->view('emails.reply.html')->with([