Laravel邮件呈现为转义的HTML

时间:2018-12-16 07:24:53

标签: php html laravel

最近,我的任何一封电子邮件中的操作按钮都没有呈现为HTML,而是类似

<tr>
<td align="center">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <a href="" class="button button-primary" target="_blank">Button Text</a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</td>
</tr>

这是减价的样子

@component('mail::message')
# Introduction

The body of your message.

@component('mail::button', ['url' => ''])
Button Text
@endcomponent

Thanks,<br>
{{ config('app.name') }}
@endcomponent

这是怎么回事?

Similar question with no answers.

0 个答案:

没有答案