View previous topic :: View next topic |
Author |
Message |
uod -
Joined: 29 Apr 2006 Posts: 8 Location: PH
|
Posted: Sat May 13, 2006 6:44 am Post subject: mail() function |
|
|
Code: | <?
include("config.php");
$date = $_GET['date'];
$time = $_GET['time'];
$name = $_GET['name'];
$ip = $_GET['ip'];
$agent = $_GET['agent'];
if($action == "report"){
$subject = "Reported Tag";
$message = "A visitor has reported a tag posted on the $date at $time\n\n";
$message .= "The tag was posted by $name with the IP $ip\n\n";
$message .= "Regards\nUod";
$headers = "From: Uod Tag Board <$email>\r\nReply-To: $email\r\n";
$success = mail($email,$subject,$message,$headers);
if($success){
$report = "Tag has been reported to the admin";
}
else{
$report = "There was an error reporting the tag";
}
}
?> | i always get "There was an error reporting the tag". what seems to be the problem? |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sat May 13, 2006 9:41 am Post subject: |
|
|
Im not sure if the mail() function returns anything when its finished processing. This could be why. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
|