If it's for testing, what I do is one of two things, when $_SERVER["SERVER_NAME"]=="localhost", either 1) display to the screen, or 2) append to a file
So I have an intermediary function that handles mail, kind of like this (this code is not perfect, but you should get the idea):
function fc_mail($to,$subject,$text,$from){
$headers=fc_headers($from);
if($_SERVER["SERVER_NAME"]=="localhost"
{
echo "\n<hr>Since you're on localhost, here's the email you're trying to send:"
."\n<br>To: {$to}\n<br>Subject: {$subject}\n<br>Text: {$text}\n<hr>"
."\nHeaders: {$headers}\n<hr>";
}else{
mail($to,$subject,$text,$headers);
}
}
Hope this helps,
--Andy
<><
Asside: does anyone know how to get indents to show up in forum messages?
And how about preventing those silly little smily characters?