Makes the Reply-To header e-mail address configurable.

also uses the SITE_NAME constant as the sender name.
This commit is contained in:
Dennis Brentjes 2018-02-03 20:50:23 +01:00
parent ee304dd7b9
commit 8b73420936
2 changed files with 5 additions and 2 deletions

View File

@ -14,6 +14,9 @@ const CACHE_KEY_PREFIX = 'hashru_';
const BASEDIR = __DIR__;
const BASEURL = 'https://pics.hashru.nl'; // no trailing /
// Reply-To e-mail header address
const REPLY_TO_ADDRESS = 'no-reply@my.domain.tld'
// Assets dir and url, where assets are plentiful. (In wwwroot!)
const ASSETSDIR = BASEDIR . '/public/assets';
const ASSETSURL = BASEURL . '/assets';
@ -29,5 +32,5 @@ const DB_PASS = '';
const DB_NAME = 'hashru_pics';
const DB_LOG_QUERIES = false;
const SITE_TITLE = 'HashRU';
const SITE_TITLE = 'HashRU Pics';
const SITE_SLOGAN = 'Nijmeegs Nerdclubje';

View File

@ -14,7 +14,7 @@ class Email
$boundary = uniqid('sr');
if (empty($headers))
$headers .= "From: HashRU Pics <no-reply@aaronweb.net>\r\n";
$headers .= "From: " . SITE_TITLE . " <" . REPLY_TO_ADDRESS . ">\r\n";
// Set up headers.
$headers .= "MIME-Version: 1.0\r\n";