You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
<?php
|
|
|
|
namespace App\Domains\System\Mail\Excel;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Mail\Mailables\Attachment;
|
|
use Illuminate\Mail\Mailables\Content;
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class ExcelImportEmail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Get the message envelope.
|
|
*/
|
|
public function envelope(): Envelope
|
|
{
|
|
return new Envelope(
|
|
subject: __('domains/system/notifications.excel.import_email.subject'),
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Get the message content definition.
|
|
*/
|
|
public function content(): Content
|
|
{
|
|
$message = (new MailMessage)
|
|
->subject(__('domains/system/notifications.excel.import_email.subject'))
|
|
->line(__('domains/system/notifications.excel.import_email.intro'))
|
|
->line(__('domains/system/notifications.excel.import_email.body'))
|
|
->line(__('domains/system/notifications.excel.import_email.outro'))
|
|
->render();
|
|
|
|
return new Content(
|
|
htmlString: $message,
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Get the attachments for the message.
|
|
*
|
|
* @return array<int, Attachment>
|
|
*/
|
|
public function attachments(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|
|
|