Hello,
I am having a small problem with my mailer.php, it seems like it does not want to recognize the senders through the website contact form but i have other contact form on other servers and they work perfectly with the same codes.
here is the code and a sample picture of the problem...
<?php
// read the variables form the string, (this is not needed with some servers).
$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$sender = $_REQUEST["sender"];
// include sender IP in the message.
$full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
$message= $full_message;
// remove the backslashes that normally appears when entering " or '
$message = stripslashes($message);
$subject = stripslashes($subject);
$sender = stripslashes($sender);
// add a prefix in the subject line so that you know the email was sent by online form
$subject = "Contact form ". $subject;
// send the email, make sure you replace email@yourserver.com with your email address
if(isset($message) and isset($subject) and isset($sender)){
mail("jg@binary3.net", $subject, $message, "From: $sender");
}
?>
Can anyone help regarding that issue.
Greatly appreciated,
Jasmin