Files
Caramel-CRM/app/Mail/Reminder.php
T

56 lines
1.2 KiB
PHP
Raw Normal View History

2025-10-22 11:58:18 +02:00
<?php
namespace App\Mail;
use App\Models\Invoice;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Address;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class Reminder extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*/
2025-10-29 12:07:51 +01:00
public function __construct(public array $invoice) {}
2025-10-22 11:58:18 +02:00
/**
* Get the message envelope.
*/
public function envelope(): Envelope
{
return new Envelope(
2025-10-29 12:07:51 +01:00
// TODO: get from settings
2025-10-22 11:58:18 +02:00
from: new Address('buchhaltung@tooloop.de', 'Tooloop Multimedia'),
2025-10-29 12:07:51 +01:00
bcc: [new Address('daniel.stock@tooloop.de', '<Daniel Stock')],
2025-10-22 11:58:18 +02:00
subject: 'Zahlungserinnerung',
);
}
/**
* Get the message content definition.
*/
public function content(): Content
{
return new Content(
2025-10-29 12:07:51 +01:00
view: 'mail.invoices.reminder',
2025-10-22 11:58:18 +02:00
);
}
/**
* Get the attachments for the message.
*
* @return array<int, \Illuminate\Mail\Mailables\Attachment>
*/
public function attachments(): array
{
return [];
}
}