diff options
Diffstat (limited to 'http/php/config.php')
| -rw-r--r-- | http/php/config.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/http/php/config.php b/http/php/config.php index 9fee39a..a83b493 100644 --- a/http/php/config.php +++ b/http/php/config.php @@ -1,5 +1,24 @@ <?php namespace JoeacNet\Http\Config; +function maxDailyEmails(): int|null +{ + $maxDailyEmails = getenv("MAX_DAILY_EMAILS"); + if (!is_numeric($maxDailyEmails)) { + return null; + } + return $maxDailyEmails; +} + +function contactMailbox(): string|null +{ + return (string) getenv("CONTACT_MAILBOX"); +} + +function contactMailboxName(): string|null +{ + return (string) getenv("CONTACT_MAILBOX_NAME"); +} + function localSmtpFrom(): string|null { return (string) getenv("LOCAL_SMTP_FROM"); |
