add configurable SMTP mail delivery
Add a core SMTP mailer with configurable transport, authentication, and sender settings. Route form confirmation and admin notifications through the core mailer, and add tests for SMTP delivery, failure cases, and finisher integration.
This commit is contained in:
@@ -149,6 +149,28 @@ return [
|
||||
'class' => Plugi\Modules\Router\DatabasePageRouter::class
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mail settings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Configure the SMTP server used by Plugi mail actions. Leave credentials
|
||||
| blank when the server does not require authentication.
|
||||
|
|
||||
*/
|
||||
'mail' => [
|
||||
'class' => Plugi\Core\Mailer::class,
|
||||
'transport' => 'smtp',
|
||||
'host' => '',
|
||||
'port' => 587,
|
||||
'encryption' => 'tls',
|
||||
'username' => '',
|
||||
'password' => '',
|
||||
'from_address' => '',
|
||||
'from_name' => '',
|
||||
'timeout' => 10,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class replacements
|
||||
|
||||
Reference in New Issue
Block a user