我正在使用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
下面是我的welcome_email.blade.php
用于生成电子邮件模板
@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
似乎您丢失了结束标记
关闭第一个<table>
标签
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>
</table>
If you did not create an account, no further action is required.
Thanks,<br>
PMS