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!

+ +