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

27 lines
772 B
PHP

<?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';
# Custom Headers (you can add multiple)
#$mail_custom_header['X-Custom-Header-Name'] = "header info";
# Display From info
$mail_user = "user";
$mail_domain = "domain";
$mail_name = "Name for user";
# Log in info
$mailer = array();
$mailer['host'] = "mail.example.com";
$mailer['port'] = "587";
$mailer['username'] = "username";
$mailer['password'] = "password";
require $phpmailer['phpmailer'];
require $phpmailer['smtp'];
?>