think-digitally Posted June 11, 2008 Share Posted June 11, 2008 Error given Warning: mail() expects at most 5 parameters, 7 given in /home/content/a/1/6/a16538296/html/send_contact.php on line 13 Code <?php $print1 ="$print1"; $print2="$print2"; $print3="$print3"; $name="$name"; $customer_mail="$customer_mail"; $mail_from="$customer_mail"; $header="from: $name <$mail_from>"; $to ='[email protected]'; $send_contact=mail($to,$print1,$print2,$print3,$name,$customer_mail,$header); if($send_contact){ echo "We've recived your contact information"; } else { echo "ERROR"; } ?> Link to comment https://forums.phpfreaks.com/topic/109781-solved-whats-wrong-here/ Share on other sites More sharing options...
MatthewJ Posted June 11, 2008 Share Posted June 11, 2008 Um... you're sending 7 parameters instead of the max 5 You should check out the mail function in the manual... I am assuming you need to concat your message into one field. Link to comment https://forums.phpfreaks.com/topic/109781-solved-whats-wrong-here/#findComment-563365 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.