Hi this is my first post here, so as you have guessed I am quite new to PHP.
I have got a contact.php form to work from my flash website with Yahoo as my server.
Whilst testing out the form I found out through accident if I used more than 717 characters in all the fields in the email, the email I receive is blank!
Anything under 717 and the tested emails come through in full with all fields filled in.
I have contacted the very slow help desk at Yahoo many times 🙁 and they claim there is no problem or character limit when using PHP mail forms on Yahoo.
I have been trying to cure this problem for over 2 weeks now, and now it's stressing me out.
Today I even joined another server and tried and tested the contact.php mail form on it and although the fields were not separated there was no limit to any text I used. (Hopefully this proves the fault lies with Yahoo).
I'm hoping you Guys can help me out before my head explodes :o
<?php
//$to should be changed to email address you want to send this email to.
$to = 'myemail';
$name = $_POST['nombre'];
$email = $_POST['email'];
$number = $_POST['phone'];
$question = $_POST['comentarios'];
//Header info
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$subject = 'Client Contact';
$message = "Contact Name: <b>" . $name . "</b><br>";
$message .= '<br>';
$message .= "Contact E-mail: <b>" . $email . "</b><br>";
$message .= '<br>';
$message .= "Contact Number: <b>" . $number . "</b><br>";
$message .= '<br>';
$message .= "Contact Comments: <b>" . $question . "</b><br>";
if ($from != ".") {
$ok = mail($to, $subject, $message, $headers);
}
if($ok) {
echo "&server_mes=ok&";
} else {
echo "&server_mes=fail&";
}
?>
Any help would be greatly appreciated. 😉
Regards.