All pastes #208834 Raw Edit

Server Monitor secon

public text v1 · immutable
#208834 ·published 2006-10-18 20:57 UTC
rendered paste body
<?php

// ******************************************
// *   Form mailer courtesy of Alfred Fox   *
// ******************************************




// Passed variables
$acct_manager=$_POST['acct_manager']; 
$acct_manager_email=$_POST['acct_manager_email'];
$location=$_POST['location'];
$customer_name=$_POST['customer_name'];
$ap_number=$_POST['ap_number'];
$customer_company=$_POST['customer_company'];
$customer_phone=$_POST['customer_phone'];
$customer_email=$_POST['customer_email'];
$description=$_POST['description'];
$revenue=$_POST['revenue'];
$features=$_POST['features'];
$unique_features=$_POST['unique_features'];
$member_area=$_POST['member_area'];
$product_number=$_POST['product_number'];
$data_input=$_POST['data_input'];
$more_products=$_POST['more_products'];
$similar_sites=$_POST['similar_sites'];
$features_like=$_POST['features_like'];
$static_pages=$_POST['static_pages'];
$design_plan=$_POST['design_plan'];
$flash_template=$_POST['flash_template'];
$addons=$_POST['addons'];
$comments=$_POST['comments'];

// Determine what address to cc to
if ($location == "nasc@aplus.net") {
	$cc = "juliap@aplus.net";
} else if ($location == "Chrisp@aplus.net") {
	$cc = "christinec@aplus.net";
	$cc2 = "dennisk@aplus.net";
} else if ($location == "philipl@aplus.net") {
	$cc = "christinec@aplus.net";
	$cc2 = "dennisk@aplus.net";
} else if ($location == "allyd@aplus.net") {
	$cc = "juliap@aplus.net";
} else if ($location == "kerrys@aplus.net") {
	$cc = "juliap@aplus.net";
}

// Set constant Email Variable
$email2 = "rfq@aplus.net";
$email3 = "dennisk@aplus.net";

// Email subject
$subject="Portal RFQ - ".$customer_name."";

// file attachment


    
$headers = "From: $from";
// Email message
$message="
Request For Quote

Account Manager ID : ".$acct_manager."

Account Manager Email : ".$acct_manager_email."

********************

Customer Name : ".$customer_name."

Customer AP # : ".$ap_number."

Customer Company Name : ".$customer_company."

Customer Phone Number : ".$customer_phone."

Customer Email : ".$customer_email."

Web Site Description : 
".$description."

How will the customer get revenue from the site?
".$revenue."

What features does the customer want?
".$features."

Special Requirements :
".$unique_features."

Does the customer want a Members Area? ".$member_area."

How many products is the customer going to sell? ".$product_number."

Who is going to input the data? ".$data_input."

Will the customer add more categories / products ? ".$more_products."

Similar Websites :
".$similar_sites."

Which features do they like / dislike?
".$features_like."

Number of static HTML pages : ".$static_pages."

Design Plan : ".$design_plan."

Flash Template : ".$flash_template."

Add-Ons : ".$addons."

Comments / Concerns / Clarifications :
".$comments."
";

// Mail to account manager and email contact specified in $location
mail($acct_manager_email,$subject,$message);
mail($location,$subject,$message);
mail($email2,$subject,$message);
mail($email3,$subject,$message);
mail($cc,$subject,$message);
mail($cc2,$subject,$message);


// Redirect Page
header("Refresh: 0;url=/static/rfq-completed.html");
?>