I am testing an contact form on my server hosted by goDaddy. I am trying to send an email from flash/html but have not really succeeded … here is my php code
<?php $name = $_POST['name']; $email = $_POST['email']; $destinationMail = $_POST['destinationMail']; $message = $_POST['message']; $headers = 'From:' . $email . "\r " . 'Reply-To: firstname.lastname@example.org' . "\r " . 'X-Mailer: PHP/' . phpversion(); $feedback = mail($name, 'email@example.com', $message, $headers); echo $feedback; ?>
It seems to work fine … returns 1 in firebug … but the mail does not arrive in my inbox.
Maybe mail() function is not active on my server… is this checkable http://digitalzoomstudio.net/phpinfo.php ?
EDIT: I can send mail from my wordpress contact form on the same server… so maybe the error is my php code… dunno what I am doing wrong