Guest User

Untitled

a guest
Jul 20th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. <?php
  2. $mailto = "ahackbart@mivamerchant.com" ;
  3. $subject = "Quick Contact Feedback" ;
  4. $submitsubject = "Thank You for Contacting Us!" ;
  5.  
  6. $formurl = "affiliate.php" ;
  7. $thankyouurl = "THANK YOU URL GOES HERE" ;
  8.  
  9. $uself = 0;
  10.  
  11. $headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;
  12. $affiliate_name = $_POST['affiliate_name'] ;
  13. $affiliate_business_name = $_POST['affiliate_business_name'] ;
  14. $affiliate_email = $_POST['affiliate_email'] ;
  15. $affiliate_phone = $_POST['affiliate_phone'];
  16. $affiliate_questions = $_POST['affiliate_questions'] ;
  17. $http_referrer = getenv( "HTTP_REFERER" );
  18.  
  19. # Is the OS Windows or Mac or Linux
  20. if (strtoupper(substr(PHP_OS,0,3)=='WIN')) {
  21. $eol="\r\n";
  22. } elseif (strtoupper(substr(PHP_OS,0,3)=='MAC')) {
  23. $eol="\r";
  24. } else {
  25. $eol="\n";
  26. }
  27.  
  28. $messageproper =
  29.  
  30. "This message was sent from:\n" .
  31. "$http_referrer\n" .
  32. "------------------------------------------------------------\n" .
  33.  
  34. "Name: $affiliate_name\n" .
  35. "Business Name: $affiliate_business_name\n" .
  36. "Email: $affiliate_email\n" .
  37. "Phone: $affiliate_phone\n".
  38. "----------------------------------------------------------\n\n" .
  39.  
  40. "Comments: $affiliate_questions\n" .
  41. "\n\n------------------------------------------------------------\n" ;
  42.  
  43.  
  44. $response = "Dear $affiliate_name,\n"
  45. . "Thank you for interest in Miva Merchant SEO Services. "
  46. . "One of our support representatives will contact you shortly to"
  47. . " go over your details and find out how we can take your site to"
  48. . " the top of the rankings.\n\nSincerely,\nMiva Merchant\n";
  49.  
  50. $from = "From: \"" . $affiliate_name . "\" <" . $affiliate_email . ">";
  51. $replyto = "Reply-To: \"" . $affiliate_name . "\" <" . $affiliate_email . ">" . $headersep . "X-Mailer: chfeedback.php 2.07";
  52.  
  53. mail($mailto, $subject, $messageproper, $from . $headersep . $replyto );
  54.  
  55. $from = "From: \"Miva Merchant\" <ahackbart@mivamerchant.com>";
  56.  
  57. mail($affiliate_email, $submitsubject, $response, $from . $headersep );
  58.  
  59.  
  60. header( "Location: $thankyouurl" );
  61. exit ;
  62.  
  63. ?>
Add Comment
Please, Sign In to add comment