Hi,
I have the following code, its designed so that if any fields are left out, it won't mail.
if ($submit) {
if ($subject && $message && $realname && $email) {
mail($recipient,$subject,"$message\n\n From $realname","FROM: $emai\r");
$feedback .= " Thank you $realname You have Successfully Sent E-mail to $recipient ";
} else {
$feedback .= " Error - Please Fill in ALL Fields ";
}
}
However even when you fill them all in, and mail it still fails. Can anyone see why? I have even used..
if(!$subject || !$message || !$realname || !$email)
But this does the same.
Can anyone help.
Cheers
Ben