laravel-mailbox icon indicating copy to clipboard operation
laravel-mailbox copied to clipboard

Forwarded Email is Converted from HTML to Plain Text

Open intellow opened this issue 6 years ago • 1 comments

I'm using Mailgun and when I get an HTML email and try to forward it, the forwarded message is in plain text. Is there a way for me to maintain the forwarded message as HTML?

intellow avatar Feb 21 '20 21:02 intellow

I was able to manually set any outgoing email to use HTML with the following:

Mail::send([], [], function ($message) use ($email, $contactEmail) {
    $message->to($contactEmail)
        ->replyTo($email->from())
        ->subject($email->subject())
        ->setBody($email->body(), "text/html");
});

intellow avatar Mar 03 '20 17:03 intellow