PHP - My E-mail Form Is Not Working On Yahoo (amateur)
Hello, PHP Freaks,
So I have my website built with RapidWeaver, and built a PHP form page, and it works fine with a test host. However, I uploaded to Yahoo Small Business and the submissions aren't getting through. I heard that Yahoo is quite problematic when it comes to PHP...I called their help line and they told me that I needed to include the following in my form: <form name="Form0" method="POST" action="http://us.xx.px.webhosting.yahoo.com/forms?login=YahooID&to=mail@domianname.com&confirm=index.html&error=" onSubmit="return checkForm0()"> However, I have 2 php files, application.php and mailer.php. application.php: Quote <?php // Start session. session_start(); // Set a key, checked in mailer, prevents against spammers trying to hijack the mailer. $security_token = $_SESSION['security_token'] = uniqid(rand()); if ( ! isset($_SESSION['formMessage'])) { $_SESSION['formMessage'] = 'Fill in the form below to submit an application.'; } if ( ! isset($_SESSION['formFooter'])) { $_SESSION['formFooter'] = 'A scholarship is also available, please contact us for more details.'; } if ( ! isset($_SESSION['form'])) { $_SESSION['form'] = array(); } function check($field, $type = '', $value = '') { $string = ""; if (isset($_SESSION['form'][$field])) { switch($type) { case 'checkbox': $string = 'checked="checked"'; break; case 'radio': if($_SESSION['form'][$field] === $value) { $string = 'checked="checked"'; } break; case 'select': if($_SESSION['form'][$field] === $value) { $string = 'selected="selected"'; } break; default: $string = $_SESSION['form'][$field]; } } return $string; } ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="robots" content="all" /> <meta name="generator" content="RapidWeaver" /> <title>North Shore Culinary School | Application</title> <link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/styles.css" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/ie7.css" /><![endif]--> <link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/colourtag-page4.css" /> <link rel="stylesheet" type="text/css" media="print" href="../rw_common/themes/culinaryschool/print.css" /> <link rel="stylesheet" type="text/css" media="handheld" href="../rw_common/themes/culinaryschool/handheld.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/css/width/900.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/css/header/sunflower.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/css/icons/blue.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/css/sidebar/sidebar_right.css" /> <script type="text/javascript" src="../rw_common/themes/culinaryschool/javascript.js"></script> <!--[if IE 6]><script type="text/javascript" charset="utf-8"> var blankSrc = "../rw_common/themes/culinaryschool/png/blank.gif"; </script> <style type="text/css"> img { behavior: url("../rw_common/themes/culinaryschool/png/pngbehavior.htc"); } </style><![endif]--> </head> <body> <div id="top_bar"> <img src="../rw_common/themes/culinaryschool/images/body_top_bar.png" alt="" width="3000" height="8" /> </div> <div id="container"><!-- Start container --> <div id="top_swirl"> <img src="../rw_common/themes/culinaryschool/images/top_swirl.png" alt="" width="222" height="140" /> </div> <div id="pageHeader"><!-- Start page header --> <div id="logo_overlay"><img src="../rw_common/themes/culinaryschool/images/logo_grad_overlay.png" alt="" width="3000" height="175" /></div> <div id="logo"></div> <h1>North Shore Culinary School</h1> <h2>This is a complete program designed to train today's food service professionals for entry level jobs which may ladder to further opportunities.</h2> </div><!-- End page header --> <div id="contentContainer"><!-- Start main content wrapper --> <div id="navcontainer"><!-- Start Navigation --> <ul><li><a href="../index.html" rel="self">Home</a></li><li><a href="../about.html" rel="self">About</a></li><li><a href="../requirements.html" rel="self" class="currentAncestor">Curriculum</a><ul><li><a href="../curriculum/details.html" rel="self">Details</a></li><li><a href="../curriculum/calendar.html" rel="self">Calendar</a></li><li><a href="application.php" rel="self" id="current">Application</a></li></ul></li><li><a href="../contact.html" rel="self">Contact</a></li></ul> </div><!-- End navigation --> <div id="sidebarContainer"><!-- Start Sidebar wrapper --> <div id="sidebar"><!-- Start sidebar content --> <h1 class="sideHeader"></h1><!-- Sidebar header --> <!-- sidebar content you enter in the page inspector --> <!-- sidebar content such as the blog archive links --> </div><!-- End sidebar content --> </div><!-- End sidebar wrapper --> <div id="content"><!-- Start content --> <div class="message-text"><?php echo $_SESSION['formMessage']; unset($_SESSION['formMessage']); ?></div><br /> <form action="./application_files/mailer.php" method="post" enctype="multipart/form-data"> <div> <label>First Name:</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element0'); ?>" name="form[element0]" size="40"/><br /><br /> <label>Last Name:</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element1'); ?>" name="form[element1]" size="40"/><br /><br /> <label>Sex:</label> *<br /> <select name="form[element2]"> <option <?php echo check('element2', 'select','Male'); ?> value="Male">Male</option> <option <?php echo check('element2', 'select','Female'); ?> value="Female">Female</option> </select><br /><br /> <label>Birthdate (DD/MM/YYYY):</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element3'); ?>" name="form[element3]" size="40"/><br /><br /> <label>Date of Application (DD/MM/YYYY):</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element4'); ?>" name="form[element4]" size="40"/><br /><br /> <label>Address:</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element5'); ?>" name="form[element5]" size="40"/><br /><br /> <label>Apartment Number:</label> <br /> <input class="form-input-field" type="text" value="<?php echo check('element6'); ?>" name="form[element6]" size="40"/><br /><br /> <label>Postal Code:</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element7'); ?>" name="form[element7]" size="40"/><br /><br /> <label>Home Phone Number:</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element8'); ?>" name="form[element8]" size="40"/><br /><br /> <label>Cell Phone Number:</label> <br /> <input class="form-input-field" type="text" value="<?php echo check('element9'); ?>" name="form[element9]" size="40"/><br /><br /> <label>Fax:</label> <br /> <input class="form-input-field" type="text" value="<?php echo check('element10'); ?>" name="form[element10]" size="40"/><br /><br /> <label>E-mail:</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element11'); ?>" name="form[element11]" size="40"/><br /><br /> <label>Alternate e-mail:</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element12'); ?>" name="form[element12]" size="40"/><br /><br /> <label>BCID #:</label> <br /> <input class="form-input-field" type="text" value="<?php echo check('element13'); ?>" name="form[element13]" size="40"/><br /><br /> <label>BC Driver's License #:</label> <br /> <input class="form-input-field" type="text" value="<?php echo check('element14'); ?>" name="form[element14]" size="40"/><br /><br /> <label>Are you of First Nation or Inuit descent?</label> *<br /> <select name="form[element15]"> <option <?php echo check('element15', 'select','Yes'); ?> value="Yes">Yes</option> <option <?php echo check('element15', 'select','No'); ?> value="No">No</option> </select><br /><br /> <label>Were you born in Canada?</label> *<br /> <select name="form[element16]"> <option <?php echo check('element16', 'select','Yes'); ?> value="Yes">Yes</option> <option <?php echo check('element16', 'select','No'); ?> value="No">No</option> </select><br /><br /> <label>If not, what is your country of birth?</label> <br /> <input class="form-input-field" type="text" value="<?php echo check('element17'); ?>" name="form[element17]" size="40"/><br /><br /> <label>When did you arrive in Canada? (DD/MM/YYYY)</label> <br /> <input class="form-input-field" type="text" value="<?php echo check('element18'); ?>" name="form[element18]" size="40"/><br /><br /> <label>Elementary School Attended:</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element19'); ?>" name="form[element19]" size="40"/><br /><br /> <label>High School Attended:</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element20'); ?>" name="form[element20]" size="40"/><br /><br /> <label>DId you receive any extra learning support in school? (e.g. ESL)</label> *<br /> <select name="form[element21]"> <option <?php echo check('element21', 'select','Yes'); ?> value="Yes">Yes</option> <option <?php echo check('element21', 'select','No'); ?> value="No">No</option> </select><br /><br /> <label>If yes, please specify...</label> <br /> <input class="form-input-field" type="text" value="<?php echo check('element22'); ?>" name="form[element22]" size="40"/><br /><br /> <label>Do you have a computer workstation at home?</label> *<br /> <select name="form[element23]"> <option <?php echo check('element23', 'select','Yes'); ?> value="Yes">Yes</option> <option <?php echo check('element23', 'select','No'); ?> value="No">No</option> </select><br /><br /> <label>How will you be travelling to and from school?</label> *<br /> <select name="form[element24]"> <option <?php echo check('element24', 'select','Car'); ?> value="Car">Car</option> <option <?php echo check('element24', 'select','Bus'); ?> value="Bus">Bus</option> <option <?php echo check('element24', 'select','Bike'); ?> value="Bike">Bike</option> <option <?php echo check('element24', 'select','Walking'); ?> value="Walking">Walking</option> <option <?php echo check('element24', 'select','Other'); ?> value="Other">Other</option> </select><br /><br /> <label>Are you receiving any financial assistance? Please specify...</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element25'); ?>" name="form[element25]" size="40"/><br /><br /> <label>Have you received a blood test?</label> *<br /> <select name="form[element26]"> <option <?php echo check('element26', 'select','Yes'); ?> value="Yes">Yes</option> <option <?php echo check('element26', 'select','No'); ?> value="No">No</option> </select><br /><br /> <label>Have you received a TB test?</label> *<br /> <select name="form[element27]"> <option <?php echo check('element27', 'select','Yes'); ?> value="Yes">Yes</option> <option <?php echo check('element27', 'select','No'); ?> value="No">No</option> </select><br /><br /> <label>Do you have any disabilities? Please specify...</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element28'); ?>" name="form[element28]" size="40"/><br /><br /> <label>What is your cultural background?</label> *<br /> <input class="form-input-field" type="text" value="<?php echo check('element29'); ?>" name="form[element29]" size="40"/><br /><br /> <div style="display: none;"> <label>Spam Protection: Please don't fill this in:</label> <textarea name="comment" rows="1" cols="1"></textarea> </div> <input type="hidden" name="form_token" value="<?php echo $security_token; ?>" /> <input class="form-input-button" type="reset" name="resetButton" value="Reset" /> <input class="form-input-button" type="submit" name="submitButton" value="Submit" /> </div> </form> <br /> <div class="form-footer"><?php echo $_SESSION['formFooter']; unset($_SESSION['formFooter']); ?></div><br /> <?php unset($_SESSION['form']); ?> <div class="clearer"></div> </div><!-- End content --> </div><!-- End main content wrapper --> </div><!-- End container --> <div id="footer"><!-- Start Footer --> <div id="footer_swirl"> <img src="../rw_common/themes/culinaryschool/images/footer_swirl.png" alt="" width="502" height="69" /> </div> <p>© 2010 Don Guthro</p> <div id="breadcrumbcontainer"><!-- Start the breadcrumb wrapper --> </div><!-- End breadcrumb --> </div><!-- End Footer --> </body> </html> mailer.php: Quote <?php //start the session session_start(); ////////////////////////////////////////////////////// // Begin variables to be written out by RapidWeaver // ////////////////////////////////////////////////////// //set the return URL $return_url = "../application.php"; //set the users email address $email = "nachapol.d@gmail.com"; //array of fields in form. (In the format "field_name" => "field_label") $form_fields = array( "element0" => 'First Name:', "element1" => 'Last Name:', "element2" => 'Sex:', "element3" => 'Birthdate (DD/MM/YYYY):', "element4" => 'Date of Application (DD/MM/YYYY):', "element5" => 'Address:', "element6" => 'Apartment Number:', "element7" => 'Postal Code:', "element8" => 'Home Phone Number:', "element9" => 'Cell Phone Number:', "element10" => 'Fax:', "element11" => 'E-mail:', "element12" => 'Alternate e-mail:', "element13" => 'BCID #:', "element14" => 'BC Driver\'s License #:', "element15" => 'Are you of First Nation or Inuit descent?', "element16" => 'Were you born in Canada?', "element17" => 'If not, what is your country of birth?', "element18" => 'When did you arrive in Canada? (DD/MM/YYYY)', "element19" => 'Elementary School Attended:', "element20" => 'High School Attended:', "element21" => 'DId you receive any extra learning support in school? (e.g. ESL)', "element22" => 'If yes, please specify...', "element23" => 'Do you have a computer workstation at home?', "element24" => 'How will you be travelling to and from school?', "element25" => 'Are you receiving any financial assistance? Please specify...', "element26" => 'Have you received a blood test?', "element27" => 'Have you received a TB test?', "element28" => 'Do you have any disabilities? Please specify...', "element29" => 'What is your cultural background?' ); $required_fields = array("element0", "element1", "element2", "element3", "element4", "element5", "element7", "element8", "element11", "element12", "element15", "element16", "element19", "element20", "element21", "element23", "element24", "element25", "element26", "element27", "element28", "element29"); $mail_from_name = "element0"; $mail_from_email = "element11"; $mail_subject = "element4"; //uses the email address defined above as the from email. $send_from_users_email = false; //sets the PHP setting 'sendmail_from' for use on a windows server. $windows_server = true; // Set up the error and success messages. $message_success = 'Thank you, your application has been sent.'; $message_unset_fields = "Fields marked with * are required."; //////////////////////////////////////////////////// // End variables to be written out by RapidWeaver // //////////////////////////////////////////////////// // Check key variable from form against session key. if ( ! isset($_POST['form_token']) || $_POST['form_token'] !== $_SESSION['security_token']) { // Set a fixed error message if the keys don't match. redirect($return_url, 'We cannot verify that you are trying to send an email from this form. Please try again.'); } // SPAM checking. If the "comment" form field has been filled out, // send back to form asking to remove content and exit the script. if ($_POST['comment']) { redirect($return_url, 'Please remove content from the last textarea before submitting the form again. This is to protect against SPAM abuse.'); } ///////////////////////// // PROCESS FORM FIELDS // ///////////////////////// $magic_quotes = (bool) get_magic_quotes_gpc(); foreach ($_POST['form'] as $key => $value) { if ($magic_quotes) { $value = stripslashes($value); } $_SESSION['form'][$key] = $value; } /////////////////////////// // CHECK REQUIRED FIELDS // /////////////////////////// //if any of the required fields are empty if (check_required_fields($required_fields) === false) { //return to form with error message. redirect($return_url, $message_unset_fields); } else { /////////////////////////////////// // ALL IS OK, SETUP GLOBAL VAR'S // /////////////////////////////////// //check email address if ( ! check_email($email)) unset($email); //set mime boundry. Needed to send the email. Mixed seperates text from attachments. $mixed_mime_boundary = 'rms-mix-x'.md5(mt_rand()).'x'; //alt seperates html from plain text. $alt_mime_boundary = 'rms-alt-x'.md5(mt_rand()).'x'; //set the from address if user supplied email is invalid use form owners. $submitted_email = ''; if (isset($_SESSION['form'][$mail_from_email])) { $submitted_email = $_SESSION['form'][$mail_from_email]; } if (check_email($submitted_email) && $send_from_users_email === false) { $from = $reply_to = $_SESSION['form'][$mail_from_name].'<'.$submitted_email.'>'; } else { $from = '<'.$email.'>'; $reply_to = check_email($submitted_email) ? '<'.$submitted_email.'>' : $from; } //set the email subject $subject = ''; if (isset($_SESSION['form'][$mail_subject])) { $subject = $_SESSION['form'][$mail_subject]; } //email headers $headers = "From: $from\r\n" . "Reply-to: $reply_to\r\n" . "MIME-Version: 1.0\r\nContent-Type: multipart/mixed; " . "boundary=$mixed_mime_boundary"; //////////////////////////// // CONSTRUCT HTML CONTENT // //////////////////////////// //Construct HTML email content, looping through each form element //Note: When you get to a file attachment you need to use $_FILES['form_element']['name'] //This will just output the name of the file. The files will actually be attached at the end of the message. //Set a variable for the message content $html_content = "<html>\r\n<head>\r\n<title>" . safe_escape_string($subject) . "</title>\r\n</head>\r\n<body>\r\n<p>\r\n"; //////////////////////////// // CONSTRUCT TEXT CONTENT // //////////////////////////// //construct a plain text version of the email. $text_content = ''; //build a message from the reply for both HTML and text in one loop. foreach ($form_fields as $field => $label) { $html_content .= '<b>' . safe_escape_string($label) . '</b> '; $text_content .= "$label "; if (isset($_FILES[$field])) { $string = (isset($_FILES[$field]['name'])) ? $_FILES[$field]['name'] : ''; } else { $string = (isset($_SESSION['form'][$field])) ? $_SESSION['form'][$field] : ''; } $html_content .= nl2br(safe_escape_string($string)) . "<br /><br />\r\n"; $text_content .= "$string\r\n\r\n"; } //close the HTML content. $html_content .= "</p>\r\n</body>\r\n</html>"; ///////////////////////////// // CONSTRUCT EMAIL MESSAGE // ///////////////////////////// //Now we combine both HTML and plain text version of the email into one. //Creating the message body which contains a Plain text version and an HTML version, //users email client will decide which version to display $message = "\r\n--$mixed_mime_boundary\r\n" . "Content-Type: multipart/alternative; boundary=$alt_mime_boundary\r\n\r\n" . "--$alt_mime_boundary\r\n" . "Content-Type: text/plain; charset=UTF-8; format=flowed\r\n" . "Content-Transfer-Encoding: Quoted-printable\r\n\r\n" . "$text_content\r\n\r\n" . "--$alt_mime_boundary\r\n" . "Content-Type: text/html; charset=UTF-8\r\n" . "Content-Transfer-Encoding: Quoted-printable\r\n\r\n" . "$html_content\r\n\r\n" . "--$alt_mime_boundary--\r\n\r\n" . "\r\n\r\n--$mixed_mime_boundary"; ////////////////////// // FILE ATTACHMENTS // ////////////////////// //loop through the $_FILES global array and add each attachment to the form. if (isset($_FILES)) { foreach ($_FILES as $attachment) { $filename = $attachment['name']; //if the file has been uploaded if ($attachment['error'] === UPLOAD_ERR_OK && is_uploaded_file($attachment['tmp_name'])) { $file = fopen($attachment['tmp_name'],'rb'); $data = fread($file,filesize($attachment['tmp_name'])); fclose($file); $data = chunk_split(base64_encode($data)); $message .= "\r\nContent-Type: application/octet-stream; name=\"$filename\"" . "\r\nContent-Disposition: attachment; filename=\"$filename\"" . "\r\nContent-Transfer-Encoding: base64\r\n\r\n$data\r\n\r\n--$mixed_mime_boundary"; } else if ($attachment['error'] !== UPLOAD_ERR_NO_FILE) { //try to provide a useful error message determined from the error code. switch ($attachment['error']) { case UPLOAD_ERR_INI_SIZE: case UPLOAD_ERR_FORM_SIZE: $error = "File $filename exceeds the " . ini_get('upload_max_filesize') . 'B limit for the server.'; break; case UPLOAD_ERR_PARTIAL: $error = "Only part of the file $filename could be uploaded, please try again."; break; default: $error = "There has been an error attaching the file $filename, please try again."; } redirect($return_url, $error); } } } //finish off message $message .= '--'; //for windows users. if ($windows_server === true) { ini_set('sendmail_from', $email); } //if the mail sending works if (@mail($email, $subject, $message, $headers)) { //set the success message $notice = $message_success; unset($_SESSION['form']); } else { $notice = "I'm sorry, there seems to have been an error trying to send your email. Please try again."; } //redirect to the form redirect($return_url, $notice); } ////////////////////// // GLOBAL FUNCTIONS // ////////////////////// // Redirects back to the form, an optional session message can be defined. function redirect($url, $message = NULL) { if ($message) { $_SESSION['formMessage'] = $message; } header('Location: ' . $url); exit; } // Function to escape data inputted from users. This is to protect against embedding // of malicious code being inserted into the HTML email. // Sample code: safe_escape_string($_POST['form_field']) function safe_escape_string($string) { return htmlspecialchars($string, ENT_QUOTES); } // Function to check the validity of email address. function check_email($email) { return (bool) preg_match('/^([a-z0-9_]|\-|\.)+@(([a-z0-9_]|\-)+\.)+[a-z]{2,4}$/i', $email); } // Function to check the required fields are filled in. function check_required_fields($required_fields) { foreach ($required_fields as $field) { if (( ! isset($_SESSION['form'][$field]) || empty($_SESSION['form'][$field])) && ( ! isset($_FILES[$field]) || empty($_FILES[$field]['name']))) { return false; } } return true; } Now I'm a little bombarded with this code, since I am an amateur web-builder and I don't have much experience modifying PHP. I was just wondering how I can integrate the code given to me into my existing PHP files. The website is www.northshoreculinaryschool.com and my form is under Curriculum > Application. I can provide the files if anyone wishes. Any help is greatly appreciated! If you can help me through this, you're a lifesaver! Similar TutorialsI'm using a simple form to grab an email address and send the person who signs up and automatic response. It was working for a while and now it's not. Not sure what happened. My hosting company told me to look into my headers. Can anyone help? Here is my code. Thanks, Code: [Select] <?php /* Set e-mail recipient */ $subject = "Sign Up"; $headers = "From: admin@xxx.com" . "\r\n" . "CC: admin@xxx.com"; /* Check all form inputs using check_input function */ $sign_up_email_address = check_input($_POST['sign_up_email_address'], "Please enter your email address."); /* If e-mail is not valid show error message */ if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $sign_up_email_address)) { show_error("E-mail address not valid"); } /* Let's prepare the message for the e-mail */ $response_message = "Sample Message"; /* Send the message using mail() function */ mail($sign_up_email_address, $subject, $response_message, $headers); /* Functions we used */ function check_input($data, $problem='') { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); if ($problem && strlen($data) == 0) { show_error($problem); } return $data; } function show_error($myError) { ?> <?php echo $myError; ?> Thank you, Hi I have a simply working SMTP form, however I need this to send to a yahoo.com email address, what can I add to achieve this? SmtpConfig.php ============== <?php //Server Address $SmtpServer="91.186.30.25"; $SmtpPort="25"; //default $SmtpUser="things@wilsoncarandvanrental.co.uk"; $SmtpPass="things123"; ?> SmtpClass.php ============= <?php class SMTPClient { // A function for Setting up SMTP function SMTPClient ($SmtpServer, $SmtpPort, $SmtpUser, $SmtpPass, $from, $to, $subject, $body) { $this->SmtpServer = $SmtpServer; $this->SmtpUser = base64_encode ($SmtpUser); $this->SmtpPass = base64_encode ($SmtpPass); $this->from = $from; $this->to = $to; $this->subject = $subject; $this->body = $body; //Setting Default port Value if ($SmtpPort == "") { $this->PortSMTP = 25; } else { $this->PortSMTP = $SmtpPort; } } //Sending the Mail function SendMail () { if ($SMTPIN = fsockopen ($this->SmtpServer, $this->PortSMTP)) { fputs ($SMTPIN, "EHLO ".$HTTP_HOST."\r\n"); $talk["hello"] = fgets ( $SMTPIN, 1024 ); fputs($SMTPIN, "auth login\r\n"); $talk["res"]=fgets($SMTPIN,1024); fputs($SMTPIN, $this->SmtpUser."\r\n"); $talk["user"]=fgets($SMTPIN,1024); fputs($SMTPIN, $this->SmtpPass."\r\n"); $talk["pass"]=fgets($SMTPIN,256); fputs ($SMTPIN, "MAIL FROM: <".$this->from.">\r\n"); $talk["From"] = fgets ( $SMTPIN, 1024 ); fputs ($SMTPIN, "RCPT TO: <".$this->to.">\r\n"); $talk["To"] = fgets ($SMTPIN, 1024); fputs($SMTPIN, "DATA\r\n"); $talk["data"]=fgets( $SMTPIN,1024 ); fputs($SMTPIN, "To: <".$this->to.">\r\nFrom: <".$this->from.">\r\nSubject:".$this->subject."\r\n\r\n\r\n".$this->body."\r\n.\r\n"); $talk["send"]=fgets($SMTPIN,256); //CLOSE CONNECTION AND EXIT ... fputs ($SMTPIN, "QUIT\r\n"); fclose($SMTPIN); // } return $talk; } } ?> mail.php ======== <?php //Include Class And Config include('SmtpConfig.php'); include('SmtpClass.php'); //Check the Request Method if($_SERVER["REQUEST_METHOD"] == "POST") { $to = $_POST['to']; $from = $_POST['from']; $subject = $_POST['sub']; $body = $_POST['message']; // Send the mail Using the class $SMTPMail = new SMTPClient ($SmtpServer, $SmtpPort, $SmtpUser, $SmtpPass, $from, $to, $subject, $body); $SMTPChat = $SMTPMail->SendMail(); } // After Exit, show the form ?> <form method="post" action=""> To:<input type="text" name="to" /> From :<input type='text' name="from" /> Subject :<input type='text' name="sub" /> Message :<textarea name="message"></textarea> <input type="submit" value=" Send " /> </form> Probably quite straight form, but of course I don#t know how :0) Much appreciated. system: vista ultimate sp2 IIS 7 server installed and running PHP 5 fastCGI im not sure if this is within the purview of the forum but you all seem like smart people with an expertise in this area. i have a web site http://penumbraproductions.dyndns-remote.com/ . it is hosted locally on my desktop using the above mentioned IIS7 server options using dyndns to list the url cause my ISP has DHCP without static ip's for non-business accounts that has a contact form... form mail. i've tried numerous php codes to get it to send mail to my email account but none of them are working my IIS smtp setting a email to: archaismic@gmail.com smtp server: smtp.gmail.com port number: 465 using login credentials i've also tried to configuring the smtp options in IIS to dump the mail to a folder on my computer which also did not work attached is the feedback.php file im currently working with minus the captcha private key and the code for the form i'm using is: Code: [Select] <form action="feedback.php" method="post"> <table border="0" cellpadding="8" cellspacing="8"> <tr><td><label for="tswname">Name</label>:</td><td><input type="text" name="fullname" id="tswname" size="25" /></td></tr> <tr><td><label for="tswemail">Email address</label>:</td><td><input type="text" id="tswemail" name="email" size="25" /></td></tr> <tr> <td colspan="2"> <label for="tswcomments">Comments</label><br /> <textarea rows="15" cols="45" name="comments" id="tswcomments"></textarea> </td> </tr> <tr> <td align="center" colspan="2"> <script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6LcYjcASAAAAAH1NwZ0IH_TUO4XDANZqWu3Ei9yh"></script> <noscript> <iframe src="http://api.recaptcha.net/noscript?k=6LcYjcASAAAAAH1NwZ0IH_TUO4XDANZqWu3Ei9yh" height="300" width="500" frameborder="0" title="CAPTCHA test"></iframe> <br /> <label for="tswcaptcha">Copy and paste the code provided in above box he </label><br /> <textarea name="recaptcha_challenge_field" id="tswcaptcha" rows="3" cols="40"></textarea> <input type="hidden" name="recaptcha_response_field" value="manual_challenge" /> </noscript> </td> </tr> <tr> <td align="center" colspan="2"> <input type="submit" value="Send Feedback" /> </td> </tr> </table> </form> I have a notification system that notifies users of new comments, inside the email I have images, some of the logo, some of different people, everything shows up fine on my computer (yahoo email), however in the iPhones email application no images show up, there are just the blue squares with the question marks in them. I'm not sure what I'm missing. Code: [Select] $from = "Kithell <notifications@kithell.com>"; $headers = "From:" . $from ."\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $subject = name($from_id, 'fl').$action; $message = '<html><body> <style>@charset "utf-8"; /* CSS Document */ .e-container { background-color: #FFF;position: relative;width: 90%;min-height:1px;margin-right: auto;margin-left: auto; } .e-container .e-m-header { padding: 2px; background-image: url(http://www.kithell.com/assets/tall-grey-header.png); background-repeat: repeat-x; border: 1px solid #CCC; background-position: bottom; display: block; text-align: center; } .e-container p { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #666; vertical-align: text-top; display: inline-block; } .e-container .e-usr-photo { display: inline-block; margin: 10px; float: left; background-color: #F4F4F4; } .e-container p a { font-weight: bold; color: #3F60A3; text-decoration: underline; padding: 0px; float: left; margin-top: 0px; margin-right: 5px; margin-bottom: 0px; margin-left: 0px; } .e-container .e-quotes { font-size: 20px; font-weight: bold; color: #999; font-family: Tahoma, Geneva, sans-serif; display: block; padding: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 75px; margin-top:10px; } .e-container .e-message { font-size: 13px; color: #333; padding: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 10px; clear: none; display: inline; }</style> <div class="e-container"><div class="e-m-header"><img src="http://www.kithell.com/assets/kithell-logo.png" /></div><img class="e-usr-photo" src="http://www.kithell.com/'.photo($from_id, 55).'" /><br /><p><a target="_blank" href="http://www.kithell.com/#/profile&id='.$from_id.'">'.name($from_id, "fl").' </a> '.$action.'<div class="e-quotes">"<p class="e-message">'.nl2br(htmlentities(stripslashes($message))).'</p>"</div></p></div></body></html>'; mail($to,$subject,$message,$headers); Hello all, I am trying to get PHP's mail() function to work, but it's not. I'm just using a basic mail() example that I've used on other servers -- it works fine. I've tried... 1) Setting the SMTP to the correct SMTP server in PHP ini file and using ini_set() 2) The port is correctly set to 25 3) I've set the sendmail path in PHP.INI to Code: [Select] ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = /usr/sbin/sendmail -t The mail() function returns true, however it's not working! I know it's not something with my machine blocking ports because I can use Perl and it works fine Any ideas? email not working at all Code: [Select] <?php $e=$_POST['email']; $e1=$_POST['email1']; $e2=$_POST['email2']; $e3=$_POST['email3']; $e4=$_POST['email4']; $e5=$_POST['email5']; $e6=$_POST['email6']; $e7=$_POST['email7']; $e8=$_POST['email8']; $e9=$_POST['email9']; $cc=$e1.",".$e2.",".$e3.",".$e4.",".$e5.",".$e6.",".$e7.",".$e28.",".$e39.","; $to = $e; $subject = 'You have Been Invited '; $message = ' test message -------------------------------------------------------------------------------------- '; $headers = 'From:'.$email . "\r\n"; $headers .= 'Bcc:'. $cc . "\r\n"; mail($to, $subject, $message, $headers); ?> ok well this scripts sends the email but when i put <a href="index.php">hey</a> it desplays it exactly , no link! like it shows all of the html code! Code: [Select] <?php require_once "Mail.php"; $from = "glenn"; $to = "luggy95@hotmail.com"; $subject = "From Glenn"; $body = "<a href='index.php'> hey</a>"; $host = "smtp.gmail.com"; $username = "activate.social@gmail.com"; $password = "password"; $port = "587"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'port' => $port, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { echo("<p>Message successfully sent!</p>"); } ?> This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=347009.0 The link in the email is showing up as plain text and not as a link. How do I fix this? if($notify === true) { $sender = fetch_user_info(fetch_username_by_id ($user_info['uid'])); $receiver = fetch_user_info(fetch_username_by_id ($uid)); $sender['displayName'] = ucwords("{$sender['firstname']} {$sender['lastname']}"); $receiver['displayName'] = ucwords("{$receiver['firstname']} {$receiver['lastname']}"); $body = "<table>Hi ${receiver['firstname']},\n \n <a href=\"http://mysite.com/u/{$sender['username']}\" title=\"Go to {$sender['displayName']}'s profile\">{$sender['displayName']}</a> would like to be.\n Please sign in to .\n \n The who</table>"; mail($receiver['email'], 'fssd', $body, 'From: noreply@site.com'); // return $sender; } Well I am trying to is send a email with the user attachment along with what they put in form <?php if (isset($_POST['submit'])){ $strFilesName1 = $_FILES["file"]["tmp_name"]; //define the receiver of the email $to = '[email]inix@live.co.uk[/email]'; //define the subject of the email $subject = 'email with attachment'; //create a boundary string. It must be unique //so we use the MD5 algorithm to generate a random hash $random_hash = md5(date('r', time())); //define the headers we want passed. Note that they are separated with \r\n $headers = "From: [email]webmaster@example.com[/email]\r\nReply-To: [email]webmaster@example.com[/email]"; //add boundary string and mime type specification $headers .= "\r\nContent-Type: multipart/mixed; boundary=\"PHP-mixed-".$random_hash."\""; //read the atachment file contents into a string, //encode it with MIME base64, //and split it into smaller chunks $attachment = chunk_split(base64_encode(file_get_contents("$strFilesName1"))); //define the body of the message. ob_start(); //Turn on output buffering ?> --PHP-mixed-<?php echo $random_hash; ?> Content-Type: multipart/alternative; boundary="PHP-alt-<?php echo $random_hash; ?>" --PHP-alt-<?php echo $random_hash; ?> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello World!!! This is simple text email message. --PHP-alt-<?php echo $random_hash; ?> Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit <h2>Hello World!</h2> <p>This is something with <b>HTML</b> formatting.</p> <?php $to = "[email]inix@live.co.uk[/email]"; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $email = $_POST['email']; $document_title = $_POST['document_title']; $word_count = $_POST['word_count']; $comments = $_POST['comments']; echo "First name" .$first_name; echo"<br />"; echo "Last name" .$last_name; echo"<br />"; echo "Email" .$email; echo"<br />"; echo "Document title" .$document_title; echo"<br />"; echo "Word count" .$word_count; echo"<br />"; echo "Comments" .$comments; ?> --PHP-alt-<?php echo $random_hash; ?>-- --PHP-mixed-<?php echo $random_hash; ?> Content-Type: ; name="<?php echo $_FILES["file"]["tmp_name"]; ?>" Content-Transfer-Encoding: base64 Content-Disposition: attachment <?php echo $attachment; ?> --PHP-mixed-<?php echo $random_hash; ?>-- <?php //copy current buffer contents into $message variable and delete current output buffer $message = ob_get_clean(); //send the email $mail_sent = @mail( $to, $subject, $message, $headers ); //if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" echo $mail_sent ? "Mail sent" : "Mail failed"; }else{ ?> <form method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return valid();"> <p> <label>First name: <input name="first_name" type="text" id="first_name" maxlength="50" /> </label> <br /> <br /> <label>Last name: <input name="last_name" type="text" id="last_name" maxlength="100" /> </label> <br /> <br /> <label>Email: <input name="email" type="text" id="email" maxlength="100" /> </label> <br /> <br /> <label>Document title: <input name="document_title" type="text" id="document_title" maxlength="100" /> </label> <br /> <br /> <label>Word count: <input name="word_count" type="text" id="word_count" maxlength="100" /> </label> <br /> <br /> <label>Comments: <input name="comments" type="text" id="comments" maxlength="100" /> <br /> <br /> </label> <label>Upload file <input type="file" name="file" id="file"> <br /> <br /></label> <input type="submit" name="submit" id="submit" value="Submit" /> </p> </form> <?php }?> What it is doing is, sending user info and but not attaching the file but putting random long numbers so it seems to be encoding the file but not adding it as a attachment Code: [Select] Content-Type: application/msworks name="/home/inixdeve/tmp/phpqVDPz3" Content-Transfer-Encoding: base64 Content-Disposition: attachment 0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAA EAAAAgAAAAEAAAD+////AAAAAAAAAAD///////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////9 /////v////7///8EAAAABQAAAAYAAAAHAAAACAAAAAkAAAASAAAACwAAAAwAAAANAAAADgAAAA8A AAAQAAAAEQAAAAMAAAATAAAAFAAAABUAAAAWAAAAFwAAABgAA AAZAAAAGgAAABsAAAAcAAAAHQAA AB4AAAAfAAAAIAAAACEAAAAiAAAAIwAAACQAAAAlAAAAJgAAA P7////+//////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////1IA bwBvAHQAIABFAG4AdAByAHkAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAWAAUA//////////8BAAAAslqkDgqe0RGkBwDAT7kyugAAAAAAAAAAAAAAAHA27hV0DswB JwAAAEABAAAAAAAAQwBPAE4AVABFAE4AVABTAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAABIAAgECAAAAAwAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAKAAAAAEgAAAAAAAABAEMAbwBtAHAAT wBiAGoAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgACA P///////////////wAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWAAAAA AAAAFMAUABFAEwATABJAE4ARwAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAASAAIA//////// ////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAALgAAAAAAAAAAQAA AP7///8DAAAABAAAAP7///////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////9kACAA dABoAGEAdA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AHQAaABpAG4AZ wBzACAAaABlACAAbwB3AG4AZQBk ACAAaQBuACAAYQAgAGMAYQByAHQALAAgAGEAbgBkACAAbABhA HMAdABsAHkAIABNAHIAIABQAGgA aQBsAGwAbwB0AHMAbwBuACAAcwBhAHkAcwAgAHQAaABhAHQAI ABoAGUAIAB3AGEAcwAgAG0AbwB2 AGkAbgBnACAAdABvACAAQwBoAHIAaQBzAHQAbQBpAG4AcwB0A GUAcgAgAGEAbgBkACAAaABlACAA YwBvAHUAbABkACAAbgBvAHQAIAB0AGEAawBlACAAaABpAHMAI ABwAGkAYQBuAG8AIAB3AGkAdABo ACAAaABpAG0ADQANADgADQBKAHUAZABlACAAdABoAG8AdQBnA GgAdAAgAHQAaABhAHQAIABoAGkA cwAgAGEAdQBuAHQAGSBzACAAZgB1AGUAbAAtAGgAbwB1AHMAZ QAgAHcAbwB1AGwAZAAgAGIAZQAg AG8AZgAgAHUAcwBlACAAdABvACAAdABoAGUAIABzAGMAaABvA G8AbAAgAG0AYQBzAHQAZQByACwA IABiAGUAYwBhAHUAcwBlACAAaABlACAAdABoAG8AdQBnAGgAd AAgAHQAaABlACAAcwBjAGgAbwBv AGwAIABtAGEAcwB0AGUAcgAgAGMAbwB1AGwAZAAgAGwAZQBhA HYAZQAgAGgAaQBzACAAcABpAGEA bgBvACAAdABoAGUAcgBlAC4ADQANADkADQBTAGUAYwB0AGkAb wBuACAAQQAgAHQAYQBsAGsAcwAg AGkAbgAgAG0AbwByAGUAIABpAG4AZgBvAHIAbQBhAHQAaQB2A GUAIABzAHQAeQBsAGUALAAgAGEA bgBkACAAaABhAHMAIABhACAAbABvAHQAIABvAGYAIABmAGEAY wB0AHMAIABpAG4AIABpAHQAIABz AHUAYwBoACAAYQBzACAAHCB0AGgAZQAgAG8AbABkACAAcwB0A GUAYQBtAGUAcgBzACAAdwBoAGkA YwBoACAAdQBzAGUAZAAgAHQAbwAgAGMAcgBvAHMAcwAgAHQAa ABlACAAQQB0AGwAYQBuAHQAaQ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ZQAgA HQAbwAgAHQAaABlACAAcwBjAGgA bwBvAGwAIABtAGEAcwB0AGUAcgAsACAAYgBlAGMAYQB1AHMAZ QAgAGgAZQAgAHQAaABvAHUAZwBo AHQAIAB0AGgAZQAgAHMAYwABAP7/AwoAAP////+yWqQOCp7REaQHAMBPuTK6GgAAAFF1aWxsOTYg U3RvcnkgR3JvdXAgQ2xhc3MA/////wEAAAAAAAAA9DmycQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAABA AAAeaqdYAAAAAAFAAAAeaqdYAAA AACBqp1gBQAAAHmqnWAKAAAAgaqdYCwAAAB5qp1gNQAAAA8AA AB5qp1gAAAAAIGqnWCYAgAAeaqd YKUCAACBqp1gIwQAAHmqnWAtBAAAgaqdYK0EAAB5qp1gtwQAA IGqnWCUBgAAeaqdYJ4GAACBqp1g iAgAAHmqnWCSCAAAgaqdYMgIAAB5qp1g0ggAAIGqnWDuCAAAe aqdYPsIAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAA== Hello, The mail function works on my one website but it won't on my other site. On the site that it won't work on, I'm trying to email the contents of the cart. I tested it out and it diplays the contents of the cart properly if I echo $email. I don't get any errors on the site, it seems to process but I don't receive any emails. here is my code for process.php: Code: [Select] <?php session_start(); error_reporting(E_ALL); ini_set('display_errors','1'); require_once("connect.php"); ?> <?php $check=$_POST['check']; /* code that outputs the cart contents and totals up the cart */ $cartOutput=""; $total="0"; // start the foreach loop to go through each item in the cart array $i=0; foreach($_SESSION["cart_array"] as $each_item) { $item_id=$each_item['id']; $prod_id=$each_item['product_id']; // distiguish between a regular item and a gift box switch ($prod_id) { // if it is a gift box case "12": // Get product name and price $sql=mysql_query("SELECT products.productPrice, products.productName FROM products WHERE productId='$prod_id' LIMIT 1"); while ($row=mysql_fetch_array($sql)) { $product_name=$row["productName"]; $price=$row["productPrice"]; } $subtotal=$price*$each_item['quantity']; $total=$subtotal + $total; if(isset ($_SESSION["cart_array"] )) { // dynamic checkout button assembly // dynamic cart item display $cartOutput.="<tr align=center> <td width=5%><font face=arial color='#999999'>".substr($each_item['id'],0,7)."</font></td> <td width=25%><font face=arial color='#999999'>".$product_name."</font></td> <td width=40% valign=center><font face=arial color='#999999'>Wrap my products in a Gift Box</font></td> <td valign=center width=5%><font face=arial color='#999999'>".$each_item['quantity']." </td> <td width=5%><font color='#999999'>$".$price.".00</font></td> <td width=10%><font color='#999999'>$".$subtotal.".00</font></td> </tr> <tr> <td colspan=6><hr size=1 width=50% color='#CBB659'/></td></tr>"; } // end if statement to see if cart is empty break; // if it is a Reed Diffuser Bottle case "17": // Get product name and price $sql=mysql_query("SELECT products.productPrice, products.productName, products.productDesc FROM products WHERE productId='$prod_id' LIMIT 1"); while ($row=mysql_fetch_array($sql)) { $product_name=$row["productName"]; $price=$row["productPrice"]; $desc=$row['productDesc']; } $subtotal=$price*$each_item['quantity']; $total=$subtotal + $total; if(isset ($_SESSION["cart_array"] )) { // dynamic checkout button assembly // dynamic cart item display $cartOutput.="<tr align=center> <td width=5%><font face=arial color='#999999'>".substr($each_item['id'],0,7)."</font></td> <td width=25%><font face=arial color='#999999'>".$product_name."</font></td> <td width=40% valign=center><font face=arial color='#999999'>".$desc."</font></td> <td valign=center width=5%><font face=arial color='#999999'>".$each_item['quantity']."</td> <td width=5%><font face=arial color='#999999'>$".$price.".00</font></td> <td width=10%><font face=arial color='#999999'>$".$subtotal.".00</font></td> </tr> <tr> <td colspan=6><hr size=1 width=50% color='#CBB659'/></td></tr>"; } // end if statement to see if cart is empty break; // if it is a salve case "3": $salveId=substr($each_item['id'],2,4); $prodId=substr($each_item['id'],0,1); // Get product name and price $sql=mysql_query("SELECT * FROM salves WHERE productId='$salveId' LIMIT 1"); while ($row=mysql_fetch_array($sql)) { $scent=$row['productName']; } $sql=mysql_query("SELECT * FROM products WHERE productId='$prodId' LIMIT 1"); while ($row=mysql_fetch_array($sql)) { $price=$row['productPrice']; $product_name=$row['productName']; } if(isset ($_SESSION["cart_array"] )) { $subtotal=$price*$each_item['quantity']; $total=$subtotal + $total; // dynamic cart item display $cartOutput.="<tr align=center> <td width=5%><font face=arial color='#999999'>".$each_item['id']."</font></td> <td width=25%><font face=arial color='#999999'>".$product_name."</font></td> <td width=40%><font face=arial color='#999999'>".$scent."</font></td> <td valign=center width=5%><font face=arial color='#999999'>".$each_item['quantity']." </td> <td width=5%><font face=arial color='#999999'>$".$price.".00</font></td> <td width=10%><font face=arial color='#999999'>$".$subtotal.".00</font></td> </tr></form> <tr> <td colspan=6><hr size=1 width=50% color='#CBB659'/></td></tr>"; } // end if statement to see if cart is empty break; // if it is not a gift box or sale/clearance item default : $scent=substr($each_item['scent'],0,4); // Get product name and price $sql=mysql_query("SELECT products.productPrice, products.productName FROM products WHERE productId='$prod_id' LIMIT 1"); while ($row=mysql_fetch_array($sql)) { $product_name=$row["productName"]; $price=$row["productPrice"]; } // get scent for regular product $sql2=mysql_query("SELECT productscents.scentName FROM productscents WHERE scentId='$scent' LIMIT 1"); while ($row2=mysql_fetch_array($sql2)) { $scent=$row2['scentName']; } $subtotal=$price*$each_item['quantity']; $total=$subtotal + $total; if(isset ($_SESSION["cart_array"] )) { // dynamic cart item display $cartOutput.="<tr align=center> <td width=5%><font face=arial color='#999999'>".substr($each_item['id'],0,7)."</font></td> <td width=25%><font face=arial color='#999999'>".$product_name."</font></td> <td width=40%><font face=arial color='#999999'>".$scent."</font></td> <td valign=center width=5%><font face=arial color='#999999'>".$each_item['quantity']."</td> <td width=5%><font face=arial color='#999999'>$".$price.".00</font></td> <td width=10%><font face=arial color='#999999'>$".$subtotal.".00</font></td> </tr></form> <tr> <td colspan=6><hr size=1 width=50% color='#CBB659'/></td></tr>"; } // end if statement to see if cart is empty break; } // end switch } // end foreach that goes through each item in the cart /* Code that generates the email */ $ans=$_SESSION['check']; $check=$_POST['check']; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // customer information $firstName = strip_tags($_POST['firstName']); $lastName = strip_tags($_POST['lastName']); $address = strip_tags($_POST['address']); $city = strip_tags($_POST['city']); $prov = strip_tags($_POST['prov']); $postalCode = strip_tags(strtoupper($_POST['postal'])); $emailAddress = strip_tags($_POST['email']); $payment = $_POST['payment']; $ship = $_POST['shipping']; // email subject $subject= "Online Order Request"; // email address the form will be submitted to $myemail="orders@coppercreekbathandbody.ca"; if ($firstName!="" && $lastName!="" && $address!="" && $city!="" && $prov!="" && $postalCode!="" && $emailAddress!="" && $ans==$check) { $email="<html><center> <table border=0 width=100% cellspacing=0 cellpadding=5 style='background:#1d1d1d' > <tr> <td colspan=6><center><h2><font color=#999999>$subject</font></h2></center></td> </tr> <tr valign=center > <td colspan=6 align=center valign=center><font face=arial color=#999999> $firstName $lastName<br> $address<br> $city, $prov $postalCode<br> $emailAddress </font><br><br> </td> </tr> <tr align=center style='background: #333'> <td width=8%><font face=arial color=#999999>Item #</font></td> <td width=25%><font face=arial color=#999999>Product</font></td> <td width=40%><font face=arial color=#999999>Description</font></td> <td width=4%><font face=arial color=#999999>Quantity</font></td> <td width=4%><font face=arial color=#999999>Price</font></td> <td width=10%><font face=arial color=#999999>Total Cost</font></td> </tr> <tr><font face=arial> $cartOutput </font></tr> <tr style='background: #333'> <td colspan=5 align=right><font face=arial color=#999999>Total Price:</font></td> <td align=center><font face=arial color=#999999>$".$total.".00 </font></td> </tr> <tr> <td colspan=4 align=right valign=center> <font face=arial color=#999999>Payment Method: </font> </td> <td colspan=2 align=right valign=center> <font face=arial color=#999999>$payment</font> </td> </tr> <tr> <td colspan=4 align=right valign=center> <font face=arial color=#999999>Shipping: </font> </td> <td colspan=2 align=right valign=center> <font face=arial color=#999999>$ship</font> </td> </tr> </table></center></body></html>"; mail($myemail, $subject, $email, $headers); unset($_SESSION['check']); header("location: success.php"); } else { unset($_SESSION['check']); } customerInformation.php Code: [Select] <?php session_start(); error_reporting(E_ALL); ini_set('display_errors','1'); require_once("connect.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <script type="text/javascript" src="./js/functions.js"></script> <link rel="stylesheet" type="text/css" href="./css/navigationStyles.css"/> <script language=javascript type=text/javascript> function stopRKey(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); if ((evt.keyCode == 13) && (node.type=="text")) { return false; } } document.onkeypress = stopRKey; </script> </head> <body> <div id='wrapper'> <div id='main'> <table border=0 width=70% cellspacing=10 cellpadding=5 id=table> <tr> <td colspan=6> <center><img src="./images/customerInfoLogo.gif"><br> <table border=0 width=90%> <tr> <td width=33% align=right> <a href='index.php'>HOME</a> </td> <td width=34%></td> <td width=33% align=left> <a href='cart.php'>VIEW CART</a> </td> </tr> </table> <br><br> </center> </td> </tr> <tr> <td colspan=6 align=center valign=center> <form action="process.php" name='order' method="post" onsubmit="document.getElementById('button').disabled=true; document.getElementById('button').value='Submitting, please wait...';"> <!-- REQUEST ORDER TABLE --> <table width=90% border=0 cellspacing=5 cellpadding=5> <!-- CLIENT NAME --> <tr valign=center> <td width=50% align=right> First Name: </td> <td width=50% align=left> <input type=text maxlength=40 width=40px class=contactBox id=firstName name="firstName" onBlur="validate(this.id);"> </td> </tr> <tr valign=center> <td width=50% align=right> Last Name: </td> <td width=50% align=left> <input type=text maxlength=40 width=40px onBlur='validate(this.id);' class=contactBox id=lastName name="lastName"> </td> </tr> <!-- ADDRESS --> <tr valign=center> <td width=50% align=right> Address: </td> <td width=50% align=left> <input type=text width=40px id=address class=contactBox name="address" onBlur='validate(this.id);'> </td> </tr> <!-- CITY --> <tr valign=center> <td width=50% align=right> City: </td> <td width=50% align=left> <input type=text width=40px id=city class=contactBox name="city" onBlur='validate(this.id);'> </td> </tr> <!-- Province --> <tr valign=center> <td width=50% align=right> Province: </td> <td width=50% align=left> <select name="prov"> <option value="AB">Alberta</option> <option value="BC">British Columbia</option> <option value="MB">Manitoba</option> <option value="NB">New Brunswick</option> <option value="NL">Newfoundland & Labrador</option> <option value="NT">Northwest Territories</option> <option value="NS">Nova Scotia</option> <option value="NU">Nunavut</option> <option value="ON">Ontario</option> <option value="PE">Prince Edward Island</option> <option value="QC">Quebec</option> <option value="SK" selected>Saskatchewan</option> <option value="YT">Yukon</option> </select> </td> </tr> <!-- POSTAL CODE --> <tr valign=center> <td width=50% align=right> Postal Code: </td> <td width=50% align=left> <input type=text width=40px id=postal class=contactBox name="postal" maxlength=7'> </td> </tr> <!-- EMAIL ADDRESS --> <tr valign=center> <td width=50% align=right> Email: </td> <td width=50% align=left> <input type=text width=60px id=email class=contactBox name="email" onBlur='validateEmail(this.id);'> </td> </tr> <!-- PAYMENT TYPE --> <tr valign=center> <td width=50% align=right> Payment Type: </td> <td width=50% align=left> <select name="payment"> <option value="Email Money Transfer" selected>Email Money Transfer</option> <option value="Cash">Cash</option> <option value="Money Order">Money Order</option> </select> </td> </tr> <!-- SHIPPING --> <tr valign=center> <td width=50% align=right> Need your order shipped: </td> <td width=50% align=left> <select name="shipping"> <option value="Don't Ship" selected>Don't Ship</option> <option value="Ship Order">Ship Order</option> </select> </td> </tr> <tr> <td colspan=2> <img src='captcha.php'> <input type='text' class=cap size=4 width=3 maxlength=4 onKeyPress='return check_qty(event);' name='check'> </td> </tr> <tr> <td colspan=2 valign=top> <input type=submit value='SEND ORDER' class='updateButton' id=button> <input type=reset value='CANCEL ORDER' class='updateButton' id=button onClick="location.href='home.php'"> </td> </tr> </table> </form> </td> </tr> </table> </div> <div id="sidebar" > <?php require ("menu.html"); ?> </div> </div> </body> </html> I have no idea what is happening. It should be displaying an html formatted email. Any help is greatly appreciated. Whenever try to use the PHP mail function on my local server it also fails but then when I upload my scripts to my webspace they work fine. I think there must be something wrong with my php.ini file. Below I have copied the mail function section of my php.ini file. [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. ;sendmail_from = me@example.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = sendmail -t -i ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters = Thanks for any help. Hi
I wrote some basic custom php code that presents a form to a user, they submit their details and an email gets sent to me.
I checked and the fields from the form are being carried over.
Up to about a week ago it was working and now it has stopped working and I have no idea why.
I have checked with my isp and no changes were made to anything
php version is 5.2
Attached Files
php-ini.txt 1.07KB
1 downloads
contact-process.php 3.3KB
3 downloads Hello Everyone, I do not know if I am not doing something right or if I am completely wrong. I am trying to get an error or success message depending on the out come . This is the code that I have written so far Code: [Select] <?php if (!$_POST['submit']){ $msg = "you must enter a name and message"; header("Location: {$_SERVER['URL']}testmail.php?msg=$msg"); exit; } else { $name = $_POST['name']; $message = $_POST['message']; if (strlen($name) <= 20 && $message <= 300){ if (($name == "") || ($message == "")){ $msg = " please fill in all required feilds"; header("Location: {$_SERVER['URL']}testmail.php?msg=$msg"); exit; } else { ini_set("SMTP", "smtp.greatlakes.net"); $to = "mikedmartiny@gmail.com"; $subject = "Classified Ad Submission"; $headers = "From: autostylersrv@greatlakes.net"; $headers = "MIME-Version: 1.0rn"; $headers = "Content-type: text/html"; $headers = "charset=iso-8859-1rn"; $message = "<html><body>This is a email sent from $name<br /><br />$message</body></html>"; function mail($to, $subject, $message, $headers) { $msg = "mail has been sent"; } else { $msg = "there was a error"; } } } else { $msg = "You have exceded the max lentgh"; header("Location: {$_SERVER['URL']}testmail.php?msg=$msg"); exit; } } echo "$msg"; ?> please help, here is all my code: <div id='div_phone_big'> </div> <head> <script type="text/JavaScript"> function getChoice(val) { yesNo = new Array("Yes", "No"); var getsel = document.contactus.yesnolist.value; var e = document.getElementById("yesnolist"); var strUser = e.options[e.selectedIndex].value; if (strUser == "no") { //alert('lakjdlakjsdlajd'); window.location.href = "http://www.rainbowcode.net/index.php/util/faq"; //document.write(window.location.href); window.location('http://www.rainbowcode.net/index.php/util/faq'); } else { document.contactus.emailreply.value = ""; document.contactus.commtext.value = ""; document.contactus.message.value = ""; document.contactus.commlist.value = ""; } return strUser; } function getCommChoice(x) { comm = new Array("Compliment","Complaint","Feedback","Suggestion","Billing Query","Other"); var getsel = document.contactus.commlist.value; document.contactus.message.value = comm[getsel]; return document.contactus.message.value; } function sayThanks() { alert("Thank you for submitting"); return true; } </script> </head> <body> <form name = "contactus" method="post" onSubmit="return sayThanks()"> <table class='table_format_content_rbc' border='0'> <div> <span class='spn_big_lightblue_rbc'>RAINBOW</span><span class='spn_big_black_rbc'>CODE: CONTACT US </span> <td colspan='3' align='left' class='small_header_rbc'> <h3>Problems and general queries</h3> <li>Phone our call centre on 086 110 6472 ( Available 8am-5pm from monday-friday ) or</li> <li>Email us at <a href="mailto:helloise@pagesalive.co.za">feedback@miranetworks.net</a> </li> </td> </div> <div> <tr></tr> <tr></tr> <tr> <td colspan='3' align='left' class='small_header_rbc'> <h3>Frequently Asked Questions</h3> <li>Please take a moment to read the Frequently Asked Questions as the solution to your query could be waiting for you there!</li> <li>Have you read the <?php echo link_to('FAQ','util/faq') ?> ? <select id="yesnolist" onChange="getChoice(this.value)"> <option value="yes" selected="selected">Yes</option> <option value="no">No</option> </select> </li> </tr> <tr></tr> <tr></tr> </div> <div> <tr> <td colspan='3' align='left' class='small_header_rbc'> <h3>Feedback and Suggestions</h3> </select> </li> <textarea name="message" rows="10" cols="20"></textarea> <br /><br /> <?php $to = "helloise@pagesalive.co.za"; $subject = $_REQUEST["commlist"]; $email = $_REQUEST["emailreply"]; $message = $_REQUEST["message"]; $headers = "From: $email"; mail($to, $subject, $message, $headers); ?> <input type="submit" value="Send"> <input type="reset" value="Reset"> </td> </tr> </div> </table> <table class='table_format_content_rbc' border='0'> <tr> <td colspan='3' align='left' class='small_header_rbc'> <br/> </td> <tr> </table> </form> </body> and also set the php.ini file portion: ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = /usr/sbin/sendmail -t and also ran: $ sudo echo "test" | mail -s "test" helloise@pagesalive.co.za The program 'mail' can be found in the following packages: * heirloom-mailx * mailutils please help?? <option value="feedback">Feedback</option> <option value="suggestion">Suggestion</option> <option value="billquery">Billing Query</option> <option value="other">Other</option> </select> </li> <textarea name="message" rows="10" cols="20"></textarea> <br /><br /> <?php $to = "helloise@pagesalive.co.za"; $subject = $_REQUEST["commlist"]; $email = $_REQUEST["emailreply"]; $message = $_REQUEST["message"]; $headers = "From: $email"; mail($to, $subject, $message, $headers); ?> <input type="submit" value="Send"> <input type="reset" value="Reset"> </td> </tr> </div> </table> <table class='table_format_content_rbc' border='0'> <tr> <td colspan='3' align='left' class='small_header_rbc'> <br/> </td> <tr> </table> </form> </body> and also set the php.ini file portion: ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = /usr/sbin/sendmail -t and also ran: $ sudo echo "test" | mail -s "test" helloise@pagesalive.co.za The program 'mail' can be found in the following packages: * heirloom-mailx * mailutils please help?? Hi people, please can some one help me out with a bit of php for the 'mail function'? All i want to do is have the end user fill out the form, hit submit then either have the user directed to a thank you page or have pop up message stating that the information has been sent. At the moment the code i have does not seem to be sending the mail and aditionally i have no idea where or how to start writing the code for the thank you page or the conformation pop up message. Please can some one show me the light on this one, i am really just starting out with php and finding it real hard. Anyway guys this is the code i have, please let us know what i'm doing wrong and what i need to add to it. Code: [Select] <?php if(isset($_POST['submit'])) { $to = "my_email@mydomain"; $subject = "Contact Form"; $name = $_POST['name']; $comp_name = $_POST['company_name']; $email = $_POST['email']; $phone = $_POST['contact_number']; $location = $_POST['location']; $message = $_POST['message']; $body = "From: $name\n E-Mail: $email\n Company Name: $comp_name\n Contact Number: $phone:\n Location: $location:\n Message:\n $message"; mail($to, $subject, $body); } ?> Hope some one can help, many thanks in advance. Cheers. I have this in a file called mailform.php. It check for valid email and phone number. If wrong it echo error but it still send the mail to me. I need for it if error not to send then redirect to same page with problems. no error redirect to main page. I can get to redirect with no problem. I can't figure out how to make it not send if errors. I hope I am explaining this right. Code: [Select] $fname = $_POST['firstName']; $lname = $_POST['lastName']; $degree = $_POST['Degree_Certificate']; $company = $_POST['companyName']; $address = $_POST['street']; $city = $_POST['city']; $state = $_POST['stateProvReg']; $phone = $_POST['phone']; $email = $_POST['email']; $message = $_POST['description']; $receive = "we receive your Affiliate information"; $formcontent=" Thank you $receive \n First Name: $fname \n Last Name: $lname \n Degree: $degree \n Company: $company \n Address: $address \n City: $city \n State: $state \n Phone: $phone \n Email: $email \n Description: $message"; $recipient = "webtechnician@brainmaster.com, $email"; $subject = "Affiliate List"; $mailheader = "From: $email \r\n"; if (validatePhone($phone)) { echo $phone . ' is a valid phone number.'; } else { echo $phone . ' is not valid phone number.'; } if (check_email_address($email)) { echo $email . ' is a valid email address.'; } else { echo $email . ' is not a valid email address, please hit the back button.'; } function check_email_address($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; die("hit the back button"); } } } return true; } function validatePhone($phone) { $numbersOnly = ereg_replace("[^0-9]", "", $string); $numberOfDigits = strlen($numbersOnly); if ($numberOfDigits == 7 or $numberOfDigits == 10) { echo $numbersOnly; } else { echo 'Invalid Phone Number'; } } function valIP($string) { if (preg_match( '^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:[.](?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$^', $string)) { echo $string; } else { echo 'Invalid IP Address'; } } mail($recipient, $subject, $formcontent, $mailheader) or die("Error!"); echo "Thank You!"; header('Location: http://#'); I have a pretty good php mailer script, but how do I get the senders email? When I test the form, the users email doesn't appear in the "From" field. Anyone know what I need to add to my code? Thanks. <?php if (array_key_exists('send', $_POST)) { // mail processing script // remove escape characters from POST array if (get_magic_quotes_gpc()) { function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } $_POST = array_map('stripslashes_deep', $_POST); } $from = 'Emailer Form'; $to = 'myEmail.com'; $subject = 'Interested in Urban Style Ballroom Dancing'; // list expected fields $expected = array('name', 'phone', 'email', 'address', 'city', 'state', 'zip', 'emailerMessage'); // set required fields $required = array('name', 'phone', 'email', 'address', 'city', 'state', 'zip', 'emailerMessage'); // create empty array for any missing fields $missing = array(); // process the $_POST variables foreach ($_POST as $key => $value) { // assign to temporary variable and strip whitespace if not an array $temp = is_array($value) ? $value : trim($value); // if empty and required, add to $missing array if (empty($temp) && in_array($key, $required)) { array_push($missing, $key); } // otherwise, assign to a variable of the same name as $key elseif (in_array($key, $expected)) { ${$key} = $temp; } } // go ahead only if all required fields OK if (empty($missing)) { // build the message $message = "name: $name\n\n"; $message .= "phone: $phone\n\n"; $message .= "email: $email\n\n"; $message .= "address: $address\n\n"; $message .= "city: $city\n\n"; $message .= "state: $state\n\n"; $message .= "zip: $zip\n\n"; $message .= "emailerMessage: $emailerMessage\n\n"; // limit line length to 70 characters $message = wordwrap($message, 70); // send it $mailSent = mail($to, $subject, $message); if ($mailSent) { // $missing is no longer needed if the email is sent, so unset it unset($missing); } } } ?> |