View Single Post
  #1  
Old 28th Jun 03, 07:21 AM
adams adams is offline
Super Moderator
 
Join Date: Jul 2001
Posts: 1,124
adams is an unknown quantity at this point
Code:
Warning: Failed to connect to mailserver, verify your "SMTP" setting in php.ini in \send_simpleform.php on line 19
ok here is the code in in send_simpleform.php
Code:
<? //if (($_POST[sender_name] == "") && ($_POST[sender_email] == "") && //($_POST[message] == "")) { // header("Location: http://xx.xxx.xxx.xxx/simple_form.html"); // exit; //} $msg = "E-MAIL SENT FROM WWW SITE\n"; $msg .= "Sender's Name: &nbsp; &nbsp;$_POST[sender_name]\n"; $msg .= "Sender's E-Mail: &nbsp;$_POST[sender_email]\n"; $msg .= "Message: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$_POST[message]\n\n"; $to = "me@myemail.com"; $subject = "Web Site Feedback"; $mailheaders = "From: My Web Site <> \n"; $mailheaders .= "Reply-To: $_POST[sender_email]\n\n"; mail($to, $subject, $msg, $mailheaders); ?> <HTML> <HEAD> <TITLE>Simple Feedback Form Sent</TITLE> </HEAD> <BODY> <H1>The following e-mail has been sent:</H1> <P><strong>Your Name:</strong><br> <? echo "$_POST[sender_name]"; ?> <P><strong>Your E-Mail Address:</strong><br> <? echo "$_POST[sender_email]"; ?> <P><strong>Message:</strong><br> <? echo "$_POST[message]"; ?> </BODY> </HTML>
ip address and email has been edited out for security. but how come its saying there is an error in that line? do i need to change something in my php.ini file so that i can send email using php?

thanks again everyone.
__________________
Camera Equipment:
Canon 40D & Digital Rebel XT
Canon 500mm L IS USM
Canon 100-400mm L IS USM
kit lens
Sigma 70-300mm APO DG
Canon 430 EX Speedlight
Dynatran Tripod
Lowepro Mini Trekker AW backpack
Reply With Quote