34669-vm/mail/config.php
Flatlogic Bot 6db56c92fb 1.1
2025-10-04 18:38:46 +00:00

13 lines
629 B
PHP

<?php
// Mailer configuration
// Get settings from environment variables or use defaults
define('MAIL_TRANSPORT', getenv('MAIL_TRANSPORT') ?: 'smtp');
define('SMTP_HOST', getenv('SMTP_HOST') ?: 'localhost');
define('SMTP_PORT', getenv('SMTP_PORT') ?: 1025);
define('SMTP_USER', getenv('SMTP_USER') ?: null);
define('SMTP_PASS', getenv('SMTP_PASS') ?: null);
define('SMTP_SECURE', getenv('SMTP_SECURE') ?: null); // 'tls' or 'ssl'
define('MAIL_FROM', getenv('MAIL_FROM') ?: 'noreply@example.com');
define('MAIL_FROM_NAME', getenv('MAIL_FROM_NAME') ?: 'My Personal Site');
define('MAIL_REPLY_TO', getenv('MAIL_REPLY_TO') ?: null);