I have a contact page uploaded at this site. This URL is working properly, there are no errors or warnings except send mail function is not working.
When I test it in on our testing server it works properly, I can send and receive the mail.
Can you provide any assistance with this please?
$to = $_POST['email'];
$subject = $_POST['subject'];
$headers = 'From: info@mdpharma.se' . "\r\n" . 'Reply-To: info@mdpharma.se' . "\r\n" ;
$message =$_POST['message'];
$message = wordwrap($message, 70, "\r\n");
if($_POST['email']){
mail($to, $subject, $message,null,'-fwebmaster@example.com');
echo "Mail is successfully sent to you";
} else {
echo "Mail is not set to you";
}
you can take help from here http://phpmailer.worxware.com/index.php?pg=exampledb .
everything is well explained in here. best of luck.