<?php

// Gunakan environment variable untuk production:
// MAIL_ENABLED, MAIL_HOST, MAIL_PORT, MAIL_ENCRYPTION, MAIL_USERNAME, MAIL_PASSWORD, MAIL_FROM_EMAIL, MAIL_FROM_NAME.
// Jangan simpan credential SMTP sebenar dalam source code.
return [
    'enabled' => filter_var(getenv('MAIL_ENABLED') ?: 'false', FILTER_VALIDATE_BOOLEAN),
    'host' => getenv('MAIL_HOST') ?: '',
    'port' => (int) (getenv('MAIL_PORT') ?: 587),
    'encryption' => getenv('MAIL_ENCRYPTION') ?: 'tls',
    'username' => getenv('MAIL_USERNAME') ?: '',
    'password' => getenv('MAIL_PASSWORD') ?: '',
    'from_email' => getenv('MAIL_FROM_EMAIL') ?: '',
    'from_name' => getenv('MAIL_FROM_NAME') ?: 'Sistem Pengurusan Fail',
];
