mafortis
mafortis

Reputation: 7128

Laravel markdown mail print raw html

I have this markdown template but it print row html in user mailbox

Code

@component('mail::message')
# Dear {{$user['name']}},

@component('mail::panel')
New Bank Account has been added to your profile.

|        Bank       |         Acc. No.        |         Acc. Holder         |
| ----------------- | ----------------------- | --------------------------- |
| {{$bank['name']}} | {{$bank['account_no']}} | {{$bank['account_holder']}} |
@endcomponent

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

Result

one

any idea?

Upvotes: 0

Views: 580

Answers (1)

Kurt Chun
Kurt Chun

Reputation: 411

try using @component('mail::table')

@component('mail::message')
# Dear {{$user['name']}},

@component('mail::panel')
New Bank Account has been added to your profile.

@component('mail::table')
| Bank              | Acc. No.                | Acc. Holder                 |
| ----------------- | ----------------------- | --------------------------- |
| {{$bank['name']}} | {{$bank['account_no']}} | {{$bank['account_holder']}} |
@endcomponent

@endcomponent

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

Upvotes: 1

Related Questions