Good day everyone,
I use a simple form that pass 5 variables to mail.php
the mail script then makes sure that they're is something in the variable and send the E-mail if there is.
I added a few lines to see if the mail(); was failing and I didn't know about it but it is going through fine...no mail errors no parse errors no syntax errors
Problem is ( believe it or not ) the E-mail never shows up.
Ive checked to make sure and the address to send to is ( was before I changed it to post hewre, its not my E-mail address )
but this is the code.....really really basic
<head>
</head>
<body>
<?php
if (!$name)
{
print("name eis empty");
}
if (!$email)
{
print("e-mail is empty");
}
if (!$subject)
{
print("subject is empty");
}
if (!$address)
{
}
if ( $address == 1 )
{
$address = "me@whatever.com";
}
if (!$body)
{
print("body is empty");
}
$x = mail("$address", "$subject", "$name \r\n, $email \r\n, $body");
if (!x)
print("FAILED");
exit();
?>
</body>
can anyone help me?