<?php

declare(strict_types=1);

// App configuration for registration module
// Email sending: If SMTP_* credentials are provided, emails will be sent via Gmail SMTP.
// Otherwise, it will fall back to PHP mail() (requires local SMTP configuration and is not recommended for Gmail).

// Visuals
const APP_NAME = 'The 1st Congress for Diabetes';
const ACCENT_COLOR = '#1787B8';

// Features
const ENABLE_DB = true;         // Store registrations in MySQL using connect.php
const ENABLE_EMAIL = true;      // Send confirmation email with QR attachment
const QR_CODE_SIZE = 512;       // QR image size (pixels)

// Email identity
// Set these to your Gmail address and a friendly sender name.
const EMAIL_FROM = 'infoidmena@gmail.com';
const EMAIL_FROM_NAME = 'The 1st Congress for Diabetes';
const EMAIL_REPLY_TO = 'infoidmena@gmail.com';

// SMTP (Gmail). Use an App Password (not your normal Gmail password):
// https://myaccount.google.com/apppasswords
// Port 465 with 'ssl' is recommended. Port 587 with 'tls' is also supported.
const SMTP_HOST = 'smtp.gmail.com';
const SMTP_PORT = 465;                 // 465 (ssl) or 587 (tls)
const SMTP_USERNAME = 'infoidmena@gmail.com';              // infoidmena@gmail.com
const SMTP_PASSWORD = 'pnyq ehet utew rkvx';              // 16-character App Password
const SMTP_ENCRYPTION = 'ssl';         // 'ssl' or 'tls'
