{{!! $email -> body_html !!}
Look at the opening blade there... 2 {'s and 2 !'s. Remove the first {
I am having a strange problem and would be grateful if someone can help figure out what's going on
My application is an email forwarding system. Incoming email is delivered through maligun (via a webhook) and stored in a database as body_plain and body_html. And this part works correctly.
In forwarding the email, I use the standard Laravel mailable to add from/to etc and use the build function to attach the html and plain text as follows:
public function build() { return $this -> view('email.body_html') -> text('email.body_plain'); }
The views are:
email/body_html : {!! $email -> body_html !!}} and email/body_plain: {{ $email -> body_plain }}
The emails are sent properly, but only part of the body_html gets sent.
I've tested the view "email/body_html" with:
< ? php dump($email -> body_html) ?>
{!! $email -> body_html !!}
The first statement dumps the whole html correctly, but the second statement renders only a part of the html. The only pattern I have seen is this: If body_html is just an html email body, there is no pattern in what is rendered. But if it is a reply to an html email, then the reply gets rendered correctly, but the original html body does not get rendered at all.
Any idea what I might be doing wrong?
Thanks
Please or to participate in this conversation.