<?php
/**
 * Copy this file to mail-config.php on the server and fill in the password.
 * mail-config.php is git-ignored so the SMTP password is never committed.
 */

return [
    // 'smtp'     — send as the authenticated no-reply mailbox (default).
    // 'sendmail' — hand straight to the server's mail queue, no password needed.
    'transport' => 'smtp',

    // Mailbox used to authenticate and send. This must be a real email account
    // in cPanel — if it does not exist, the server returns "535 Incorrect
    // authentication data", exactly as it does for a wrong password.
    'smtp_host'     => 'mail.newnorfolkroofingltd.co.uk',
    'smtp_port'     => 465,
    'smtp_secure'   => 'ssl', // 465 = implicit SSL/TLS. Use 'tls' with port 587.
    'smtp_username' => 'no-reply@newnorfolkroofingltd.co.uk',
    'smtp_password' => '',    // <-- ADD THE MAILBOX PASSWORD HERE

    // If SMTP authentication fails, still deliver via the local mail queue so an
    // enquiry is never lost. The failure is written to the PHP error log.
    // Set to false if you would rather the form reported an error instead.
    'fallback_to_sendmail' => true,

    // The From address. Keep this matching smtp_username so SPF/DKIM pass.
    'from_email' => 'no-reply@newnorfolkroofingltd.co.uk',
    'from_name'  => 'New Norfolk Roofing Website',

    // Where enquiries are delivered. Currently the test inbox — change to the
    // client's address when going live.
    'to_email' => 'evie@starwebsites.co.uk',
    'to_name'  => 'New Norfolk Roofing Enquiries',

    // Set true temporarily to log the SMTP conversation when debugging.
    'debug' => false,
];
