This is full code that does NOT work on Window account.
But THIS CODE does WORK on Unix account.
$to = $sent_email . ', ';
$to .= '[email protected]';
$from = "[email protected]";
$subject = "Thank you for purchasing our product";
$message .= nl2br(" \n ") ;
$message .= nl2br(" \n ") ;
$message .= "\n";
$message .= "Hello " . $sent_name . "! ";
$message .= nl2br(" \n ") ;
$message .= "Thank you for purchasing our product. ";
$message .= nl2br(" \n ") ;
$message .= "Your password is set to be " . $generated_Password . " and please log in at the following link." ;
$message .= nl2br(" \n ") ;
$message .= "Thank You." ;
$message .= nl2br(" \n ") ;
$message .= nl2br(" \n ") ;
$message .= "http://saleNow.com/promo/log-in.php";
$message .= nl2br(" \n ") ;
$message .= nl2br(" \n ") ;
$message .= "\n";
$message .= "The submitted Data are as follows: - ";
$message .= nl2br(" \n ") ;
$message .= nl2br(" \n ") ;
$message .= "(1) Name: " . $sent_name . ", ";
$message .= nl2br(" \n ") ;
$message .= "(2) Company: " . $sent_company . ", ";
$message .= nl2br(" \n ") ;
$message .= "(3) Address: ";
$message .= nl2br(" \n ") ;
$message .= "" . $sent_address .", ";
$message .= nl2br(" \n ") ;
$message .= " " . $sent_city . ", " . $sent_state . " " . $sent_zip . " ";
$message .= nl2br(" \n ") ;
$message .= "(4) Email: " . $sent_email .", ";
$message .= nl2br(" \n ") ;
$message .= "(5) Phone: " . $sent_phone .", ";
$message .= nl2br(" \n ") ;
$message .= "\n";
$message .= "(6) Date: " . $sent_date .", ";
$message .= nl2br(" \n ") ;
$message .= "\n";
$message .= "</div> " ;
$headers = "From: $from\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-Type: text/html; charset="iso-8859-1"';
$success = mail($to, $subject, $message, $headers);
|