30 lines
799 B
PHP
30 lines
799 B
PHP
<?php
|
|||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace App\Support;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Mail delivery settings.
|
||
|
|
*
|
||
|
|
* `transport`:
|
||
|
|
* - "mail" (default) — PHP's built-in mail() function
|
||
|
|
* - "smtp" — an SMTP server (host/port/credentials below)
|
||
|
|
* - "log" — append messages to `logPath` instead of sending (dev/test)
|
||
|
|
*/
|
||
|
|
final class MailConfig
|
||
|
|
{
|
||
|
|
public function __construct(
|
||
|
|
public readonly string $transport,
|
||
|
|
public readonly string $fromAddress,
|
||
|
|
public readonly string $fromName,
|
||
|
|
public readonly string $logPath,
|
||
|
|
public readonly ?string $smtpHost,
|
||
|
|
public readonly int $smtpPort,
|
||
|
|
public readonly ?string $smtpUsername,
|
||
|
|
public readonly ?string $smtpPassword,
|
||
|
|
public readonly string $smtpEncryption,
|
||
|
|
) {
|
||
|
|
}
|
||
|
|
}
|