rocksolid-light/Rocksolid_Light/rslight/phpmailer.inc.php

34 lines
1005 B
PHP
Raw Normal View History

2020-11-29 01:55:31 +01:00
<?php
# Server info and credentials for sending email
# (sending mail requires PHPMailer package installed)
$phpmailer['phpmailer'] = '/usr/share/php/libphp-phpmailer/src/PHPMailer.php';
$phpmailer['smtp'] = '/usr/share/php/libphp-phpmailer/src/SMTP.php';
$phpmailer['exception'] = '/usr/share/php/libphp-phpmailer/src/Exception.php';
2020-11-29 01:55:31 +01:00
# Custom Headers (you can add multiple)
#$mail_custom_header['X-Custom-Header-Name'] = "header info";
# 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";
# 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'];
require $phpmailer['exception'];