<?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!”;
}
?>