Hello all,
I am using a script to try to send an email from a we form. The
script is as follows:
<?php
$name = $HTTP_POST_VARS['name'];
$email = $HTTP_POST_VARS['email'];
$phone = $HTTP_POST_VARS['phone'];
$message = $HTTP_POST_VARS['message'];
$name = stripslashes($n ame);
$email = stripslashes($e mail);
$phone = stripslashes($p hone);
$message = stripslashes($m essage);
$rec_email = "c@precisionimp ortrepair.net";
$subject = "Web Page Contact Form";
$msg_body .= "Name: $name\n";
$msg_body .= "Phone Number: $phone\n";
$msg_body .= "E-Mail: $email\n";
$msg_body .= "Message: $message\n";
$msg_body .= "¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯\n";
$header_info = "From: ".$name." <".$email.">" ;
mail($rec_email , $subject, $msg_body, $header_info);
?>
I have confirmed the email account exists, and I can send email to it
outside of the script, but the script does not send the email. Any
idea on what could be the issue? I have used this script on other
websites with out a problem, the only thing I can think of is maye the
domain name is so long, and if that is it, is there anyway around it?
Thanks,
Chris
I am using a script to try to send an email from a we form. The
script is as follows:
<?php
$name = $HTTP_POST_VARS['name'];
$email = $HTTP_POST_VARS['email'];
$phone = $HTTP_POST_VARS['phone'];
$message = $HTTP_POST_VARS['message'];
$name = stripslashes($n ame);
$email = stripslashes($e mail);
$phone = stripslashes($p hone);
$message = stripslashes($m essage);
$rec_email = "c@precisionimp ortrepair.net";
$subject = "Web Page Contact Form";
$msg_body .= "Name: $name\n";
$msg_body .= "Phone Number: $phone\n";
$msg_body .= "E-Mail: $email\n";
$msg_body .= "Message: $message\n";
$msg_body .= "¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯\n";
$header_info = "From: ".$name." <".$email.">" ;
mail($rec_email , $subject, $msg_body, $header_info);
?>
I have confirmed the email account exists, and I can send email to it
outside of the script, but the script does not send the email. Any
idea on what could be the issue? I have used this script on other
websites with out a problem, the only thing I can think of is maye the
domain name is so long, and if that is it, is there anyway around it?
Thanks,
Chris
Comment