Hello,
I am having problems with the mail() function, but I don't know what the
problems are.
Here is a snippet of code:
$to = "jmluongo@comca st.net";
$from = "Gallery@gafok. com";
$subject = "Gallery Comment";
$msg = "You have received a comment from " . $commenter_name ;
$msg .= "\n\nAt index: " . $index;
$msg .= "\n\nIP address: " . $IPNumber;
$msg .= "\n\nCommen t: " . stripslashes($c omment_text);
mail($to, $subject, $msg, "$from") or print "Cannot send mail \n";
I keep getting the "Cannot send mail" message and I want to see why. Is
there any way to see what the error really is?
thanks,
_James Luongo
I am having problems with the mail() function, but I don't know what the
problems are.
Here is a snippet of code:
$to = "jmluongo@comca st.net";
$from = "Gallery@gafok. com";
$subject = "Gallery Comment";
$msg = "You have received a comment from " . $commenter_name ;
$msg .= "\n\nAt index: " . $index;
$msg .= "\n\nIP address: " . $IPNumber;
$msg .= "\n\nCommen t: " . stripslashes($c omment_text);
mail($to, $subject, $msg, "$from") or print "Cannot send mail \n";
I keep getting the "Cannot send mail" message and I want to see why. Is
there any way to see what the error really is?
thanks,
_James Luongo
Comment