<?php

declare(strict_types=1);

use App\Core\Env;

return [
    'mailer'     => Env::get('MAIL_MAILER', 'smtp'),
    'host'       => Env::get('MAIL_HOST', ''),
    'port'       => (int) Env::get('MAIL_PORT', 587),
    'encryption' => Env::get('MAIL_ENCRYPTION', 'tls'),
    // 'tls' | 'ssl' | null
    'username'   => Env::get('MAIL_USERNAME', ''),
    'password'   => Env::get('MAIL_PASSWORD', ''),

    'from' => [
        'address' => Env::get('MAIL_FROM_ADDRESS', 'no-reply@abhub.com'),
        'name'    => Env::get('MAIL_FROM_NAME', 'A&B Hub'),
    ],
];
