Add petition-specific SMTP configuration options

Add optional petition-specific SMTP configuration overrides
to the example configuration file, maintaining the existing
defaults while allowing customization for petition emails
This commit is contained in:
Ruben 2026-01-14 20:24:57 +01:00
parent 6cf9710ac1
commit ee7bb7a7a6

View file

@ -1,7 +1,7 @@
<?php
/**
* SMTP Configuration for PHPMailer.Lite
*
*
* Fill in your SMTP settings here.
* This file should be added to .gitignore to keep credentials private.
*/
@ -12,8 +12,15 @@ return [
'port' => 587, // Common ports: 587 (TLS), 465 (SSL), 25 (unsecured)
'username' => 'your-email@example.com', // SMTP username
'password' => 'your-password', // SMTP password
'from_email' => 'kontaktskjema@stopplidelsen.no',
'from_email' => 'email@example.com',
'from_name' => 'Stopp Lidelsen Kontaktskjema',
'to_email' => 'kontakt@stopplidelsen.no',
'to_email' => 'email@example.com',
'to_name' => 'Stopp Lidelsen',
// Petition-specific overrides (optional)
// If not set, the default values above will be used
'petition' => [
// 'from_email' => 'underskrifter@example.com',
// 'from_name' => 'Underskriftskampanje',
],
];