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
This commit is contained in:
Ruben 2026-02-01 20:10:10 +01:00
parent 609bd5dd34
commit 798bf268aa
3 changed files with 45 additions and 18 deletions

View file

@ -17,9 +17,18 @@ return [
'to_email' => 'email@example.com',
'to_name' => 'Stopp Lidelsen',
// Petition-specific overrides (optional)
// 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',
],