<?php
/**
 * SMTP configuration for sending email
 * Copy to config/smtp.local.php and set your credentials (do not commit .local).
 */

$smtp = [
    'enabled'   => false,
    'host'      => 'smtp.gmail.com',
    'port'      => 587,
    'encryption' => 'tls',  // 'tls' or 'ssl' or ''
    'username'  => '',
    'password'  => '',
    'from_email' => 'appnationals@gmail.com',
    'from_name'  => SITE_FULL_NAME ?? 'Nazareth Church',
];

if (file_exists(__DIR__ . '/smtp.local.php')) {
    $smtp = array_merge($smtp, require __DIR__ . '/smtp.local.php');
}

return $smtp;
