13 lines
629 B
PHP
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); |