Test your php mail function

<?php

$headers = “From: contact@domain.com\r\n”;
$headers .= “Reply-To: contact@domain.com\r\n”;
$headers .= “Return-Path: contact@domain.com\r\n”;
#$headers .= “CC: contact@domain.com\r\n”;
#$headers .= “BCC: contact@domain.com\r\n”;

$to = “kim@domain.com.sg”;
$subject = “Test email subject”;
$message = “Message body”;

if ( mail($to,$subject,$message,$headers) ) {
echo “Email sent successfully!”;
} else {
echo “Email failed!”;
}

?>

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top