Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forwarded Email is Converted from HTML to Plain Text #54

Open
intellow opened this issue Feb 21, 2020 · 1 comment
Open

Forwarded Email is Converted from HTML to Plain Text #54

intellow opened this issue Feb 21, 2020 · 1 comment

Comments

@intellow
Copy link
Contributor

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
Copy link
Contributor Author

intellow commented Mar 3, 2020

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");
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant