From 09cda8862f59f25918c64477d829e46acfc676cb Mon Sep 17 00:00:00 2001 From: Connor Thomson Date: Sun, 20 Sep 2026 18:40:35 -0700 Subject: Seperate some of the php files --- php/mail.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 php/mail.php (limited to 'php/mail.php') diff --git a/php/mail.php b/php/mail.php new file mode 100644 index 0000000..155e6b4 --- /dev/null +++ b/php/mail.php @@ -0,0 +1,30 @@ +. + */ + +function send_mail(string $to, string $subject, string $content): bool { + $from = 'noreply@gnufault.org'; + + $headers = "From: $from" . "\r\n" . + "Reply-To: $from" . "\r\n" . + "X-Mailer: PHP/" . phpversion(); + + return mail($to, $subject, $content, $headers); +} + +?> -- cgit v1.2.3