Aknaproff/app/Mail/TestEmail.php
2023-09-21 13:45:08 +01:00

35 lines
669 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class TestEmail 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->subject('This is a test email subject')
->view('emails.form_submitted')
->with(['body' => 'This is a test email body. The SMTP details you entered is correct.']);
}
}