Started a new Laravel 9 project.
Setup Mailtrap.io mailer.
Installed the mail tracker package.
Created a test mail.
Send the test mail with tinker.
Email received, but the html content is duplicated.
\App\Mail\Test.php
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class Test extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this
->markdown('mail::message')
->with([ 'slot' => 'Testing' ])
->attachData('Testing', "testing.txt");
}
}
Started a new Laravel 9 project. Setup Mailtrap.io mailer. Installed the mail tracker package. Created a test mail. Send the test mail with tinker. Email received, but the html content is duplicated.
\App\Mail\Test.php
Mail::to('testing@test.com')->send(new \App\Mail\Test());