35 lines
825 B
PHP
35 lines
825 B
PHP
<?php
|
|
|
|
namespace App\Mail\Drip;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Mail\Mailables\Content;
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class WelcomeEmail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public function __construct(public User $user) {}
|
|
|
|
public function envelope(): Envelope
|
|
{
|
|
return new Envelope(
|
|
subject: 'Welcome to Whisper Money - Your Privacy-First Finance App',
|
|
)->from(config('mail.from.address', 'hello@example.com'), 'Victor');
|
|
}
|
|
|
|
public function content(): Content
|
|
{
|
|
return new Content(
|
|
markdown: 'mail.drip.welcome',
|
|
with: [
|
|
'userName' => $this->user->name,
|
|
],
|
|
);
|
|
}
|
|
}
|