I have a problem sending a message, I print the html with the method line. I want to print a list, but I do not want to create a view for this.
Is there any method that can insertart html in the body of my mail, without using views.
public function toMail($notifiable)
$url = url('/');
return (new MailMessage)
->subject('New payment applied')
->greeting('Hi '. $this->Application->Profile->name .'!')
->line('We have got your payment with details below. '
. '<li>Amount: $' . number_format($this->Payment->amount, 2) . ' DOP</li>'
. '<li>Payment type: ' . $this->Payment->PaymentType->name . '</li>'
. '<li>Payment mode: ' . $this->Payment->PaymentMode->name . '</li>'
->line('Thank you for your payment!')
->action('More details', $url)
->line('Message sent by Ofit Platform');