From a33b6354bfa85860f738399fcbf38f5a86241d4e Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Sun, 8 Mar 2026 22:11:46 +0100 Subject: [PATCH] create a test mail --- app/Mail/TestMail.php | 57 ++++++++++++++++++++++++++++ resources/views/mails/test.blade.php | 12 ++++++ 2 files changed, 69 insertions(+) create mode 100644 app/Mail/TestMail.php create mode 100644 resources/views/mails/test.blade.php diff --git a/app/Mail/TestMail.php b/app/Mail/TestMail.php new file mode 100644 index 0000000..036d55f --- /dev/null +++ b/app/Mail/TestMail.php @@ -0,0 +1,57 @@ +data = $data; + } + + /** + * Get the message envelope. + */ + public function envelope(): Envelope + { + return new Envelope( + subject: 'Test Mail', + ); + } + + /** + * Get the message content definition. + */ + public function content(): Content + { + return new Content( + view: 'mails.test', + with: [ + 'name' => $this->data['name'], + ] + ); + } + + /** + * Get the attachments for the message. + * + * @return array + */ + public function attachments(): array + { + return []; + } +} diff --git a/resources/views/mails/test.blade.php b/resources/views/mails/test.blade.php new file mode 100644 index 0000000..62d0eb1 --- /dev/null +++ b/resources/views/mails/test.blade.php @@ -0,0 +1,12 @@ + + + + + + Test Email + + +

Hello {{ $name }}

+

This is a test email sent from your application using MailHog!

+ +