innhold/custom/smtp-config.php.example
Ruben 798bf268aa Add petition-specific SMTP configuration support
Allow separate SMTP account for petition emails
to improve deliverability through proper SPF/DKIM
configuration matching the from address
2026-02-01 20:10:10 +01:00

35 lines
1.3 KiB
Text

<?php
/**
* SMTP Configuration for PHPMailer.Lite
*
* Fill in your SMTP settings here.
* This file should be added to .gitignore to keep credentials private.
*/
return [
'enabled' => false, // Set to true when you have SMTP configured
'host' => 'smtp.example.com', // Your SMTP server
'port' => 587, // Common ports: 587 (TLS), 465 (SSL), 25 (unsecured)
'username' => 'your-email@example.com', // SMTP username
'password' => 'your-password', // SMTP password
'from_email' => 'email@example.com',
'from_name' => 'Stopp Lidelsen Kontaktskjema',
'to_email' => 'email@example.com',
'to_name' => 'Stopp Lidelsen',
// Petition-specific settings (optional)
// If not set, the default values above will be used
//
// IMPORTANT: For better email deliverability, use a separate SMTP account
// for petitions where the from_email matches the SMTP username.
// This ensures SPF/DKIM/DMARC checks pass.
'petition' => [
// Separate SMTP account (recommended for deliverability)
// 'host' => 'smtp.example.com',
// 'port' => 587,
// 'username' => 'underskrifter@example.com',
// 'password' => 'petition-smtp-password',
// 'from_email' => 'underskrifter@example.com',
// 'from_name' => 'Underskriftskampanje',
],
];