jblayney
asked on
php email errors again...
Hello,
i have just moved a website to a new server,,, so of course my email scripts dont work anymore.
This error is wierd, the form works if every field is filled, if any fields are blank they give the error...
this is my code
<?php
$name = $_REQUEST['name'];
$email3 = $_REQUEST['email3'];
$phone = $_REQUEST['phone'];
$workshops = $_REQUEST['workshops'];
$shiatsu = $_REQUEST['shiatsu'];
$comments = $_REQUEST['comments'];
// ********* reply email customer support ************
$msg = "E-Mail Sent From http://www.guidingrhythms.com\r\n\n";
$msg .= "Dear $name;\r\n\n";
$msg .= "We have received your email\r\n\n";
$to = $email3; // **** to form filler ********
$subject = "guidingrhythms.com: Contact Form\r\n";
$mailheaders = "From: snjezana@guidingrhythms.co m\r\n";
$mailheaders .= "Reply-To: snjezana@guidingrhythms.co m";
mail($to,$subject,$msg,$ma ilheaders) ;
// ****** end of reply email *********
// ******** start of email to customer support **********
$msg = "Name : $name;\r\n";
$msg .= "Email : $email3;\r\n";
$msg .= "Phone : $'phone;\r\n";
$msg .= "Workshops : $workshops;\r\n";
$msg .= "Shiatsu : $shiatsu;\r\n";
$msg .= "Comments : $comments;\r\n";
$to = "snjezana@guidingrhythms.c om"; // ** this is the customer service dept. **
$subject = "Feedback form\r\n";
$mailheaders = "From: $email3;\r\n";
$mailheaders .= "Reply-To: $email3;";
mail($to,$subject,$msg,$ma ilheaders) ;
header("Location: contact.php");
?>
i have just moved a website to a new server,,, so of course my email scripts dont work anymore.
This error is wierd, the form works if every field is filled, if any fields are blank they give the error...
this is my code
<?php
$name = $_REQUEST['name'];
$email3 = $_REQUEST['email3'];
$phone = $_REQUEST['phone'];
$workshops = $_REQUEST['workshops'];
$shiatsu = $_REQUEST['shiatsu'];
$comments = $_REQUEST['comments'];
// ********* reply email customer support ************
$msg = "E-Mail Sent From http://www.guidingrhythms.com\r\n\n";
$msg .= "Dear $name;\r\n\n";
$msg .= "We have received your email\r\n\n";
$to = $email3; // **** to form filler ********
$subject = "guidingrhythms.com: Contact Form\r\n";
$mailheaders = "From: snjezana@guidingrhythms.co
$mailheaders .= "Reply-To: snjezana@guidingrhythms.co
mail($to,$subject,$msg,$ma
// ****** end of reply email *********
// ******** start of email to customer support **********
$msg = "Name : $name;\r\n";
$msg .= "Email : $email3;\r\n";
$msg .= "Phone : $'phone;\r\n";
$msg .= "Workshops : $workshops;\r\n";
$msg .= "Shiatsu : $shiatsu;\r\n";
$msg .= "Comments : $comments;\r\n";
$to = "snjezana@guidingrhythms.c
$subject = "Feedback form\r\n";
$mailheaders = "From: $email3;\r\n";
$mailheaders .= "Reply-To: $email3;";
mail($to,$subject,$msg,$ma
header("Location: contact.php");
?>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Notice: Undefined index: workshops in \email3.php on line 6
Notice: Undefined index: shiatsu in \email3.php on line 7
Warning: mail(): SMTP server response: 503 5.5.2 Need Rcpt command. in email3.php on line 21
Warning: Cannot modify header information - headers already sent by (output started at email3.php:6) in \email3.php on line 39