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
->from($fromEmail, $fromName)
->subject(base64_decode($this->emailSubject))
->text('emails.reply.text')->with([
'text' => base64_decode($this->emailText)
])
->withSwiftMessage(function ($message) use ($returnPath) {
$message->getHeaders()
->addTextHeader('Return-Path', config('anonaddy.return_path'));
@ -81,11 +84,12 @@ class ReplyToEmail extends Mailable implements ShouldQueue
$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([
'text' => base64_decode($this->emailText)
]);
}
} */
if ($this->emailHtml) {
$email->view('emails.reply.html')->with([