2026-02-12 16:26:28 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
|
use Illuminate\Mail\Mailable;
|
2026-02-24 09:18:29 +09:00
|
|
|
use Illuminate\Mail\Mailables\Address;
|
2026-02-25 11:45:01 +09:00
|
|
|
use Illuminate\Mail\Mailables\Content;
|
2026-02-12 16:26:28 +09:00
|
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
|
|
class EsignOtpMail extends Mailable
|
|
|
|
|
{
|
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
|
|
|
|
|
|
public function __construct(
|
|
|
|
|
public string $signerName,
|
|
|
|
|
public string $otpCode,
|
|
|
|
|
) {}
|
|
|
|
|
|
|
|
|
|
public function envelope(): Envelope
|
|
|
|
|
{
|
|
|
|
|
return new Envelope(
|
2026-02-24 09:18:29 +09:00
|
|
|
from: new Address(config('mail.contact_from_address', config('mail.from.address')), config('mail.from.name')),
|
2026-02-12 16:26:28 +09:00
|
|
|
subject: '[SAM] 전자계약 인증 코드',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function content(): Content
|
|
|
|
|
{
|
|
|
|
|
return new Content(
|
|
|
|
|
html: 'emails.esign.otp',
|
|
|
|
|
with: [
|
|
|
|
|
'signerName' => $this->signerName,
|
|
|
|
|
'otpCode' => $this->otpCode,
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|