Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mailto = "ahackbart@mivamerchant.com" ;
- $subject = "Quick Contact Feedback" ;
- $submitsubject = "Thank You for Contacting Us!" ;
- $formurl = "affiliate.php" ;
- $thankyouurl = "THANK YOU URL GOES HERE" ;
- $uself = 0;
- $headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;
- $affiliate_name = $_POST['affiliate_name'] ;
- $affiliate_business_name = $_POST['affiliate_business_name'] ;
- $affiliate_email = $_POST['affiliate_email'] ;
- $affiliate_phone = $_POST['affiliate_phone'];
- $affiliate_questions = $_POST['affiliate_questions'] ;
- $http_referrer = getenv( "HTTP_REFERER" );
- # Is the OS Windows or Mac or Linux
- if (strtoupper(substr(PHP_OS,0,3)=='WIN')) {
- $eol="\r\n";
- } elseif (strtoupper(substr(PHP_OS,0,3)=='MAC')) {
- $eol="\r";
- } else {
- $eol="\n";
- }
- $messageproper =
- "This message was sent from:\n" .
- "$http_referrer\n" .
- "------------------------------------------------------------\n" .
- "Name: $affiliate_name\n" .
- "Business Name: $affiliate_business_name\n" .
- "Email: $affiliate_email\n" .
- "Phone: $affiliate_phone\n".
- "----------------------------------------------------------\n\n" .
- "Comments: $affiliate_questions\n" .
- "\n\n------------------------------------------------------------\n" ;
- $response = "Dear $affiliate_name,\n"
- . "Thank you for interest in Miva Merchant SEO Services. "
- . "One of our support representatives will contact you shortly to"
- . " go over your details and find out how we can take your site to"
- . " the top of the rankings.\n\nSincerely,\nMiva Merchant\n";
- $from = "From: \"" . $affiliate_name . "\" <" . $affiliate_email . ">";
- $replyto = "Reply-To: \"" . $affiliate_name . "\" <" . $affiliate_email . ">" . $headersep . "X-Mailer: chfeedback.php 2.07";
- mail($mailto, $subject, $messageproper, $from . $headersep . $replyto );
- $from = "From: \"Miva Merchant\" <ahackbart@mivamerchant.com>";
- mail($affiliate_email, $submitsubject, $response, $from . $headersep );
- header( "Location: $thankyouurl" );
- exit ;
- ?>
Add Comment
Please, Sign In to add comment