<?php
/**
 * Production Email Configuration for cPanel SMTP
 * Domain: sanpcref.co.za
 */

return [
    // Enable SMTP for production
    'use_smtp' => true,
    
    // cPanel SMTP Settings
    'smtp_host' => 'mail.sanpcref.co.za', // Usually mail.yourdomain.com for cPanel
    'smtp_port' => 587, // Standard port for STARTTLS
    'smtp_username' => 'recruitment@sanpcref.co.za',
    'smtp_password' => 'P@$$word@2025',
    'smtp_secure' => 'tls', // Use TLS encryption
    
    // From address (must match SMTP username for cPanel)
    'from_email' => 'recruitment@sanpcref.co.za',
    'from_name' => 'SANPC Recruitment Portal',
    
    // Reply-to address
    'reply_to_email' => 'recruitment@sanpcref.co.za',
    'reply_to_name' => 'SANPC Recruitment Team',
    
    // Email settings
    'charset' => 'UTF-8',
    'word_wrap' => 50,
    
    // Debug settings (disable in production)
    'smtp_debug' => 0, // Set to 0 for production, 2 for debugging
    'smtp_auth' => true,
    
    // Timeout settings
    'timeout' => 30,
    'smtp_keepalive' => false,
    
    // Alternative SMTP settings for cPanel (try these if primary fails)
    'smtp_host_alt' => 'sanpcref.co.za', // Alternative: use domain directly
    'smtp_port_alt' => 465, // Alternative: SSL port
    'smtp_secure_alt' => 'ssl', // Alternative: SSL encryption
    
    // Additional headers
    'additional_headers' => [
        'X-Mailer' => 'SANPC Recruitment System',
        'Organization' => 'SANPC'
    ]
];
?>