Advertisement
Guest User

Untitled

a guest
May 11th, 2017
938
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.99 KB | None | 0 0
  1. <?php
  2.  
  3. $from=$_REQUEST['email'];
  4. $to= "careprod@gmail";
  5. $to="assoccopies@gmail.com";
  6. $to="campstamphelp@fastmail.fm";
  7.  
  8. $headers = "Content-type: text/html; charset=iso-8859-1\r\n";
  9. $headers .="From: \"$from\" <$from>\r\n Bcc: <blabla@gmail.com> \r\nReply-To: \"$from\" <$from>\r\nX-Mailer: PHP/".phpversion();
  10. $subject = "Help and Submit";
  11.  
  12. $schoolname=$_REQUEST["schoolname"];
  13. $email=$_REQUEST["email"];
  14. $contactperson=$_REQUEST["person"];
  15. $phone=$_REQUEST["phone"];
  16. $paymethod=$_REQUEST["radiobutton"];
  17. $paypalemail=$_REQUEST["paypalemail"];
  18. $sname=$_REQUEST["snailname"];
  19. $street=$_REQUEST["street"];
  20. $city=$_REQUEST["city"];
  21. $state=$_REQUEST["state"];
  22. $zip=$_REQUEST["zip"];
  23. $fax = $_REQUEST["fax"];
  24. $domain = $_REQUEST["domain"];
  25. $body = "<table width='100%' border='0'>";
  26. $body = $body."<tr>";
  27. $body = $body."<td width='50%' align='left' valign='top'><b>Name of Organization : <br />
  28.        Email : <br />
  29.        Contact Person :<br />
  30.        Phone : <br />
  31.        Fax : <br />
  32.         Domain : <br />
  33.        Payment Method : <br />
  34.        Paypal Email : <br />
  35.        Snail Mail Name on check : <br />
  36.        Snail Mail Street : <br />
  37.        Snail Mail City : <br />
  38.        Snail Mail State : <br />
  39.        Snail Mail Zip :  </b></td>";
  40. $body = $body."<td width='50%' align='left' valign='top'>". $schoolname ." <br />
  41.        " . $email . "<br />
  42.        " . $contactperson . "<br />
  43.        " . $phone. "<br />
  44.        " . $fax. "<br />
  45.         " . $domain. "<br />
  46.        " . $paymethod. "<br />
  47.        " . $paypalemail. "<br />
  48.        " . $sname. "<br />
  49.        " . $street. "<br />
  50.        " .$city. "<br />
  51.        " .$state. "<br />
  52.        " .$zip. "</td>";
  53. $body = $body."</tr>";
  54. $body = $body."</table>";
  55.  
  56. echo"$body";
  57.  
  58.  
  59.  
  60. if(mail($to, $subject, $body, $headers))
  61.   {
  62.     echo "</br><font style='font-weight:bold' Registration Form Submitted Succesfully.</font> </br></br>";
  63.   }
  64.   else
  65.   {
  66.     echo "There is an error in Sending the mail";
  67.   }
  68.  
  69. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement