<?php
// ============================================================
// Mail transport configuration
// ============================================================
// MAIL_DRIVER controls HOW outgoing notification emails are sent:
//   'php_mail' -> uses PHP's built-in mail() via your hosting's mail server
//                 (simplest option on cPanel, no extra setup)
//   'smtp'     -> uses the SMTP settings below. Works with:
//                   (a) a real SMTP server (your cPanel mailbox, SendGrid,
//                       Gmail, Zoho, etc.) for production, OR
//                   (b) Mailtrap.io for testing - Mailtrap captures every
//                       email in a fake inbox so nothing goes to real staff
//                       while you're testing the approval workflow.
//
// To switch between your real SMTP and Mailtrap, just flip MAIL_DRIVER
// between the two blocks below (comment one out, uncomment the other) or
// keep both defined and only change MAIL_DRIVER.
// ------------------------------------------------------------

define('MAIL_DRIVER', 'smtp'); // 'php_mail' | 'smtp'

// ---- OPTION A: Mailtrap (for testing - get these from your Mailtrap inbox
// under "SMTP Settings" > "PHP") ----
define('MAILTRAP_HOST', 'live.smtp.mailtrap.io');
define('MAILTRAP_PORT', 465); // 2525, 587, or 25 all work with Mailtrap
define('MAILTRAP_USERNAME', 'smtp@mailtrap.io');
define('MAILTRAP_PASSWORD', 'dc4864a002b904bfde84fee56f41107b');
define('MAILTRAP_ENCRYPTION', 'ssl');

// ---- OPTION B: Your real SMTP server (production) ----
define('SMTP_HOST', 'my.mailbux.com'); // e.g. your cPanel mail server, or smtp.sendgrid.net
define('SMTP_PORT', 587); // 465 for SSL, 587 for TLS
define('SMTP_USERNAME', 'noreply@bestwesternplusyenagoa.com');
define('SMTP_PASSWORD', '@bwpypassword100%');
define('SMTP_ENCRYPTION', 'tls'); // 'tls', 'ssl', or '' for none

// Which of the two SMTP option blocks above to actually use when
// MAIL_DRIVER = 'smtp'. Set to 'mailtrap' or 'production'.
define('SMTP_PROFILE', 'mailtrap'); // 'mailtrap' | 'production'
