Browse Source

Revert text on reply to email

Will Browning 5 năm trước cách đây
mục cha
commit
824eadb7c2
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      app/Mail/ReplyToEmail.php

+ 6 - 2
app/Mail/ReplyToEmail.php

@@ -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([