Mail failure - malformed recipient address with PHP sendmail

mcdonn67

New Member
Messages
2
Reaction score
0
Points
0
Would welcome any discussion about this error in my inbox when trying to send form to email using PHP sendmail.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Sounds like you are giving PHP sendmail a bad email address.
 

mcdonn67

New Member
Messages
2
Reaction score
0
Points
0
Sounds like you are giving PHP sendmail a bad email address.

I tried it with different email addresses and none of them worked. I read in this forum that it has to be sent FROM my email address (kimberly@mcdonnellcompany.x10.mx), not the email address entered in my contact form (by the person filling it out). I originally had it going TO my yahoo email address and then changed it to my kimberly@mcdonnellcompany.x10.mx email address, but I still keep getting the Mail failure - malformed recipient address message in my inbox.

The following is what my sendmail.php file contains:

<?php
$name = $_REQUEST['Name'] ;
$email = $_REQUEST['E-mail'] ;
$state = $_REQUEST['State'] ;
$fax = $_REQUEST['Fax'] ;
$message = $_REQUEST['Message'] ;


$all=
"E-mail: ".$email."\r\n".
"State: ".$state."\r\n".
"Fax: ".$Fax."\r\n".
"Message: ".$message."\r\n";


mail("kimberly@mcdonnellcompany.x10.mx", "Feedback Form Results",
$message, "From: kimberly@mcdonnellcompany.x10.mx", $all);
header("Location: http://www.mcdonnellcompany.x10.mx/thankyou.html");
?>
 
Top