File manager - Edit - /var/www/html/portal/app/Mail/ArteSacraMail.php
Back
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Mail\Mailables\Content; use Illuminate\Mail\Mailables\Envelope; use Illuminate\Mail\Mailables\Address; use Illuminate\Queue\SerializesModels; class ArteSacraMail extends Mailable { use Queueable, SerializesModels; protected string $email; protected string $fullName; protected string $tituloArte; protected string $corpoArte; public function __construct(string $email, string $fullName, string $tituloArte, string $corpoArte) { $this->email = $email; $this->fullName = $fullName; $this->tituloArte = $tituloArte; $this->corpoArte = $corpoArte; } public function envelope(): Envelope { return new Envelope( subject: $this->tituloArte, from: new Address("naoresponda@angra.rj.gov.br", 'Prefeitura Municipal de Angra dos Reis'), to: $this->email, ); } public function content(): Content { return new Content( html: 'emails.templateArteSacra', with: [ 'fullName' => $this->fullName, 'tituloArte' => $this->tituloArte, 'corpoArte' => $this->corpoArte, ] ); } public function attachments(): array { return []; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings