2025-11-04 22:19:58 +01:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* SMTP Configuration for PHPMailer.Lite
|
2026-01-14 20:24:57 +01:00
|
|
|
*
|
2025-11-04 22:19:58 +01:00
|
|
|
* 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
|
2026-01-14 20:24:57 +01:00
|
|
|
'from_email' => 'email@example.com',
|
2025-11-04 22:19:58 +01:00
|
|
|
'from_name' => 'Stopp Lidelsen Kontaktskjema',
|
2026-01-14 20:24:57 +01:00
|
|
|
'to_email' => 'email@example.com',
|
2025-11-04 22:19:58 +01:00
|
|
|
'to_name' => 'Stopp Lidelsen',
|
2026-01-14 20:24:57 +01:00
|
|
|
|
2026-02-01 20:10:10 +01:00
|
|
|
// Petition-specific settings (optional)
|
2026-01-14 20:24:57 +01:00
|
|
|
// If not set, the default values above will be used
|
2026-02-01 20:10:10 +01:00
|
|
|
//
|
|
|
|
|
// 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.
|
2026-01-14 20:24:57 +01:00
|
|
|
'petition' => [
|
2026-02-01 20:10:10 +01:00
|
|
|
// Separate SMTP account (recommended for deliverability)
|
|
|
|
|
// 'host' => 'smtp.example.com',
|
|
|
|
|
// 'port' => 587,
|
|
|
|
|
// 'username' => 'underskrifter@example.com',
|
|
|
|
|
// 'password' => 'petition-smtp-password',
|
2026-01-14 20:24:57 +01:00
|
|
|
// 'from_email' => 'underskrifter@example.com',
|
|
|
|
|
// 'from_name' => 'Underskriftskampanje',
|
|
|
|
|
],
|
2025-11-04 22:19:58 +01:00
|
|
|
];
|