Markdown 以纯文本形式获取降价电子邮件

Markdown 以纯文本形式获取降价电子邮件,markdown,lumen,Markdown,Lumen,我正在使用laravel Mailable和markdown发送电子邮件,但它发送的电子邮件如下所示, 不明白我做错了什么 Hello cus1 Please click the button below to verify your email address. <table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation">

我正在使用laravel Mailable和markdown发送电子邮件,但它发送的电子邮件如下所示, 不明白我做错了什么

Hello cus1
    Please click the button below to verify your email address.

    <table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation">
    <tr>
        <td align="center">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
                <tr>
                    <td align="center">
                        <table border="0" cellpadding="0" cellspacing="0" role="presentation">
                            <tr>
                                <td>
                                    <a href="https://google.com" class="button button-primary"
                                       target="_blank">Verify Email Address</a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>

    If you did not create an account, no further action is required.

    Thanks,<br>
    PMS

您应该尝试删除刀片文件中的缩进。有时降价会因此变得疯狂

试着这样做:

@component('mail::message')
# Hello {{ $user->name }},

Please click the button below to verify your email address.

@component('mail::button', ['url' => $verificationUrl])
Verify Email Address
@endcomponent

If you did not create an account, no further action is required.

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

您应该尝试删除刀片文件中的缩进。有时降价会因此变得疯狂

试着这样做:

@component('mail::message')
# Hello {{ $user->name }},

Please click the button below to verify your email address.

@component('mail::button', ['url' => $verificationUrl])
Verify Email Address
@endcomponent

If you did not create an account, no further action is required.

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