<?php

// Gunakan App Password Gmail 16 aksara, bukan kata laluan biasa akaun Google.
// Biarkan `enabled` = true selepas semua maklumat di bawah diisi.
// Jika mahu hentikan penghantaran emel sementara, tukar kepada false.
// Jika mahu, anda juga boleh guna env: MAIL_ENABLED, MAIL_HOST, MAIL_PORT, MAIL_ENCRYPTION, MAIL_USERNAME, MAIL_PASSWORD, MAIL_FROM_EMAIL, MAIL_FROM_NAME.
return [
    'enabled' => filter_var(getenv('MAIL_ENABLED') ?: 'true', FILTER_VALIDATE_BOOLEAN),
    'host' => getenv('MAIL_HOST') ?: 'smtp.gmail.com',
    'port' => (int) (getenv('MAIL_PORT') ?: 587),
    'encryption' => getenv('MAIL_ENCRYPTION') ?: 'tls',
    'username' => getenv('MAIL_USERNAME') ?: 'muhammadyusufpro007@gmail.com',
    'password' => getenv('MAIL_PASSWORD') ?: 'qxyd dbxk nbnc epki',
    'from_email' => getenv('MAIL_FROM_EMAIL') ?: 'muhammadyusufpro007@gmail.com',
    'from_name' => getenv('MAIL_FROM_NAME') ?: 'Sistem Pengurusan Fail',
];
