2020-11-29 01:55:31 +01:00
|
|
|
<?php
|
|
|
|
# Server info and credentials for sending email
|
|
|
|
# (sending mail requires PHPMailer package installed)
|
|
|
|
|
2021-02-01 10:12:25 +01:00
|
|
|
$phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
|
|
|
|
$phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
|
2022-10-30 04:37:15 +01:00
|
|
|
$phpmailer['exception'] = '/usr/share/php/libphp-phpmailer/src/Exception.php';
|
2020-11-29 01:55:31 +01:00
|
|
|
|
2022-11-02 04:46:56 +01:00
|
|
|
# Custom Headers (you can add multiple)
|
|
|
|
#$mail_custom_header['X-Custom-Header-Name'] = "header info";
|
|
|
|
|
2024-10-06 15:07:12 +02:00
|
|
|
# Admin address info
|
|
|
|
# This will format email address as:
|
|
|
|
# $mail_admin_user@$mail_admin_domain
|
|
|
|
$mail_admin_user = "adminuser";
|
|
|
|
$mail_admin_domain = "admindomain";
|
|
|
|
$mail_admin_name = "Name for Admin";
|
|
|
|
|
2022-11-02 04:46:56 +01:00
|
|
|
# Display From info
|
|
|
|
$mail_user = "user";
|
|
|
|
$mail_domain = "domain";
|
|
|
|
$mail_name = "Name for user";
|
|
|
|
|
|
|
|
# Log in info
|
2020-11-29 01:55:31 +01:00
|
|
|
$mailer = array();
|
|
|
|
$mailer['host'] = "mail.example.com";
|
|
|
|
$mailer['port'] = "587";
|
|
|
|
$mailer['username'] = "username";
|
|
|
|
$mailer['password'] = "password";
|
|
|
|
|
|
|
|
require $phpmailer['phpmailer'];
|
|
|
|
require $phpmailer['smtp'];
|
2024-08-12 15:13:50 +02:00
|
|
|
require $phpmailer['exception'];
|