summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-27 15:25:50 +0000
committerlsces <lester@lsces.co.uk>2026-03-27 15:25:50 +0000
commit305e78a0f01dc77a86e03175aa14bc0370ba1488 (patch)
tree62325f60ab645b498ad76c1945ae7060e9189661
parentffeb8d9f82705f35372bf324f56ba9dae44eed2c (diff)
downloadusers-305e78a0f01dc77a86e03175aa14bc0370ba1488.tar.gz
users-305e78a0f01dc77a86e03175aa14bc0370ba1488.tar.bz2
users-305e78a0f01dc77a86e03175aa14bc0370ba1488.zip
Simple email test page
-rwxr-xr-xtest_email.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/test_email.php b/test_email.php
new file mode 100755
index 0000000..e24e738
--- /dev/null
+++ b/test_email.php
@@ -0,0 +1,15 @@
+<?php
+// test_email.php
+
+$to = 'lester@lsces.uk'; // Replace with the recipient's email address
+$subject = 'Test Email';
+$message = 'This is a test email to verify email forwarding.';
+$headers = 'From: root@rdm1.uk' . "\r\n" . // Replace with the sender's email address
+'Reply-To: support@rdm1.uk' . "\r\n" . // Replace with the sender's email address
+'X-Mailer: PHP/' . phpversion();
+
+if (mail($to, $subject, $message, $headers)) {
+ echo 'Email sent successfully to ' . $to;
+} else {
+ echo 'Failed to send email to ' . $to;
+}