Page 1 of 1

PHP Mail Sender

Posted: Sun Dec 13, 2009 3:55 pm
by AliJ
Hi,

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 get the "Mail Sent" but I don't receive an email.
I would appreciate some help.
Thank you,

Ali J

Re: PHP Mail Sender

Posted: Sun Dec 13, 2009 4:06 pm
by AliJ
Please, even try it out your self. Send an email to your email.