forked from Public/pics
Makes the Reply-To header e-mail address configurable.
also uses the SITE_NAME constant as the sender name.
This commit is contained in:
parent
ee304dd7b9
commit
8b73420936
@ -14,6 +14,9 @@ const CACHE_KEY_PREFIX = 'hashru_';
|
|||||||
const BASEDIR = __DIR__;
|
const BASEDIR = __DIR__;
|
||||||
const BASEURL = 'https://pics.hashru.nl'; // no trailing /
|
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!)
|
// Assets dir and url, where assets are plentiful. (In wwwroot!)
|
||||||
const ASSETSDIR = BASEDIR . '/public/assets';
|
const ASSETSDIR = BASEDIR . '/public/assets';
|
||||||
const ASSETSURL = BASEURL . '/assets';
|
const ASSETSURL = BASEURL . '/assets';
|
||||||
@ -29,5 +32,5 @@ const DB_PASS = '';
|
|||||||
const DB_NAME = 'hashru_pics';
|
const DB_NAME = 'hashru_pics';
|
||||||
const DB_LOG_QUERIES = false;
|
const DB_LOG_QUERIES = false;
|
||||||
|
|
||||||
const SITE_TITLE = 'HashRU';
|
const SITE_TITLE = 'HashRU Pics';
|
||||||
const SITE_SLOGAN = 'Nijmeegs Nerdclubje';
|
const SITE_SLOGAN = 'Nijmeegs Nerdclubje';
|
||||||
|
@ -14,7 +14,7 @@ class Email
|
|||||||
$boundary = uniqid('sr');
|
$boundary = uniqid('sr');
|
||||||
|
|
||||||
if (empty($headers))
|
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.
|
// Set up headers.
|
||||||
$headers .= "MIME-Version: 1.0\r\n";
|
$headers .= "MIME-Version: 1.0\r\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user