summaryrefslogtreecommitdiff
path: root/test_email.php
blob: e24e73822b364cee72f19f07856c2cdbd0a688d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}