http: adds php api routes under do/

This commit is contained in:
2026-06-04 15:14:25 +01:00
parent 231ffbd0e8
commit 171c957c40
5 changed files with 319 additions and 1 deletions
+19
View File
@@ -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");