Formmail script is not working - it does not deliver the email to me. What's the problem?
You are having troubles sending the emails using Formmail script, because of the following reasons:
1. You have entered an email which is not hosted on our servers. We require the FROM email to be hosted on our servers. Only if the FROM email is hosted on our servers you will be able to send email successfully.
2. You are using wrong header information. You must always provide the text From:, the name of the sender and email address. Without even one of these 3 parameters the formmail script will not work properly and will not deliver the email to your mailbox. You can find out more information here: http://www.php.net/manual/en/function.mail.php
Here's an example of well working formmail script:
$from = 'From: yourname ';
$to = 'receiver';
$subject = 'Hi! ';
$body = 'TEST';
if(mail($to,$subject,$body,$from)) echo 'MAIL - OK';
else echo 'MAIL FAILED';