I have created this PHP mail sender but it does not seem to work.Look at the code.
Code: Select all
<?php
$to = "email@example.com"; // To anyone. Real email obviously.
$subject = "Subject";
$message = "Message";
$from = "any@email.com"; //This can be any email. You don't need any real email.
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent."; // If the mail is sent it will show this.
?>I would appreciate some help.
Thank you,
Ali J