Deploy Backend / deploy (push) Successful in 47s
Keep admin notify to CONTACT_NOTIFY_TO and also mail the submitter a branded confirmation so testers are not confused by missing inbox mail.
35 lines
782 B
PHP
35 lines
782 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\ContactMessage;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Mail\Mailables\Content;
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class ContactMessageConfirmed extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public function __construct(public ContactMessage $contactMessage)
|
|
{
|
|
}
|
|
|
|
public function envelope(): Envelope
|
|
{
|
|
return new Envelope(
|
|
subject: 'پیام شما در پارساآقایی ثبت شد',
|
|
);
|
|
}
|
|
|
|
public function content(): Content
|
|
{
|
|
return new Content(
|
|
html: 'mail.contact-message-confirmed',
|
|
text: 'mail.contact-message-confirmed-text',
|
|
);
|
|
}
|
|
}
|