<?php

declare(strict_types=1);

return [
    'enabled' => (bool) iav_env('MAIL_ENABLED', false),
    'transport' => (string) iav_env('MAIL_TRANSPORT', 'smtp'),
    'host' => (string) iav_env('MAIL_HOST', 'smtp.example.com'),
    'port' => (int) iav_env('MAIL_PORT', 587),
    'encryption' => (string) iav_env('MAIL_ENCRYPTION', 'tls'),
    'username' => (string) iav_env('MAIL_USERNAME', ''),
    'password' => (string) iav_env('MAIL_PASSWORD', ''),
    'timeout' => (int) iav_env('MAIL_TIMEOUT', 15),
    'from' => [
        'address' => (string) iav_env('MAIL_FROM_ADDRESS', 'no-reply@instantaivirtuals.com'),
        'name' => (string) iav_env('MAIL_FROM_NAME', 'Instant AI Virtuals'),
    ],
    'reply_to' => (string) iav_env('MAIL_REPLY_TO', 'support@instantaivirtuals.com'),
    'queue' => [
        'enabled' => true,
        'max_attempts' => 3,
        'retry_minutes' => [5, 20, 60],
    ],
    'templates_path' => dirname(__DIR__) . '/mailer/templates',
    'logo_url' => 'https://instantaivirtuals.com/assets/branding/logo-email-light.png',
];
