Mail script for user & admin at a time

<?php

$yourname = $_POST['yourname'];
$subject = $_POST['subject'];
$email =$_POST['email'];
$comments = $_POST['comments'];
$package = $_POST['package'];
$price= $_POST['price'];

$to="rmonicse@gmail.com";

$subject = "Package Order";

$message = $package."\n".$price."\n".$yourname."\n".$subject."\n".$email."\n".$comments;

$headers = 'From: UPTREND TECHNOLOGIES LTD@ http://www.uptrendgroupbd.com' . "\r\n" .

'Reply-To: noReply@ http://www.uptrendgroupbd.com' . "\r\n" .

'X-Mailer: PHP/' . phpversion();



mail($to, $subject, $message, $headers);



$to=$email;
$subject = "Package Ordering Confirmation";
$message ="Thanks for ordering.We wil contact as soon as possible";
$headers = 'From: UPTREND TECHNOLOGIES LTD@ http://www.uptrendgroupbd.com' . "\r\n" .

'Reply-To: noReply@ http://www.uptrendgroupbd.com' . "\r\n" .

'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
<script>
window.alert('message') ;
</script>
header("Location: http://www.uptrendgroupbd.com/uptrendsoft");
?>

0 Response to "Mail script for user & admin at a time"

Post a Comment

powered by Blogger | WordPress by Newwpthemes | Converted by BloggerTheme