diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-27 15:25:50 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-27 15:25:50 +0000 |
| commit | 305e78a0f01dc77a86e03175aa14bc0370ba1488 (patch) | |
| tree | 62325f60ab645b498ad76c1945ae7060e9189661 | |
| parent | ffeb8d9f82705f35372bf324f56ba9dae44eed2c (diff) | |
| download | users-305e78a0f01dc77a86e03175aa14bc0370ba1488.tar.gz users-305e78a0f01dc77a86e03175aa14bc0370ba1488.tar.bz2 users-305e78a0f01dc77a86e03175aa14bc0370ba1488.zip | |
Simple email test page
| -rwxr-xr-x | test_email.php | 15 |
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; +} |
