diff --git a/app/Mail/ConfirmAppEmail.php b/app/Mail/ConfirmAppEmail.php new file mode 100644 index 000000000..132c9a3d1 --- /dev/null +++ b/app/Mail/ConfirmAppEmail.php @@ -0,0 +1,67 @@ +verify = $verify; + $this->appUrl = $url; + } + + /** + * Get the message envelope. + * + * @return \Illuminate\Mail\Mailables\Envelope + */ + public function envelope() + { + return new Envelope( + subject: 'Complete Account Registration', + ); + } + + /** + * Get the message content definition. + * + * @return \Illuminate\Mail\Mailables\Content + */ + public function content() + { + return new Content( + markdown: 'emails.confirm_app_email', + with: [ + 'verify' => $this->verify, + 'appUrl' => $this->appUrl + ], + ); + } + + /** + * Get the attachments for the message. + * + * @return array + */ + public function attachments() + { + return []; + } +} diff --git a/resources/views/emails/confirm_app_email.blade.php b/resources/views/emails/confirm_app_email.blade.php new file mode 100644 index 000000000..64579e284 --- /dev/null +++ b/resources/views/emails/confirm_app_email.blade.php @@ -0,0 +1,18 @@ + +# Complete Account Registration + +Hello **{{'@'.$verify->user->username}}**, + +You are moments away from finishing your new account registration! + +@component('mail::button', ['url' => $appUrl]) +Complete Account Registration +@endcomponent + +

Make sure you click on the button from your mobile device, opening the link using a desktop browser won't work.

+
+

If you did not create this account, please disregard this email.

+ +Thanks,
+{{ config('pixelfed.domain.app') }} +