summaryrefslogtreecommitdiff
path: root/http/php
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-04 15:14:25 +0100
committerJoe Carstairs <me@joeac.net>2026-06-04 15:16:34 +0100
commit171c957c40172a994189cdc1824421b3a9bd379b (patch)
tree179ce57eef7d02c1d8a76e0a4bc32d895acdf75f /http/php
parent231ffbd0e88735bce6b7f337a09b99b07a214c86 (diff)
http: adds php api routes under do/
Diffstat (limited to 'http/php')
-rw-r--r--http/php/config.php19
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");