Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $from=$_REQUEST['email'];
- $to= "careprod@gmail";
- $to="assoccopies@gmail.com";
- $to="campstamphelp@fastmail.fm";
- $headers = "Content-type: text/html; charset=iso-8859-1\r\n";
- $headers .="From: \"$from\" <$from>\r\n Bcc: <blabla@gmail.com> \r\nReply-To: \"$from\" <$from>\r\nX-Mailer: PHP/".phpversion();
- $subject = "Help and Submit";
- $schoolname=$_REQUEST["schoolname"];
- $email=$_REQUEST["email"];
- $contactperson=$_REQUEST["person"];
- $phone=$_REQUEST["phone"];
- $paymethod=$_REQUEST["radiobutton"];
- $paypalemail=$_REQUEST["paypalemail"];
- $sname=$_REQUEST["snailname"];
- $street=$_REQUEST["street"];
- $city=$_REQUEST["city"];
- $state=$_REQUEST["state"];
- $zip=$_REQUEST["zip"];
- $fax = $_REQUEST["fax"];
- $domain = $_REQUEST["domain"];
- $body = "<table width='100%' border='0'>";
- $body = $body."<tr>";
- $body = $body."<td width='50%' align='left' valign='top'><b>Name of Organization : <br />
- Email : <br />
- Contact Person :<br />
- Phone : <br />
- Fax : <br />
- Domain : <br />
- Payment Method : <br />
- Paypal Email : <br />
- Snail Mail Name on check : <br />
- Snail Mail Street : <br />
- Snail Mail City : <br />
- Snail Mail State : <br />
- Snail Mail Zip : </b></td>";
- $body = $body."<td width='50%' align='left' valign='top'>". $schoolname ." <br />
- " . $email . "<br />
- " . $contactperson . "<br />
- " . $phone. "<br />
- " . $fax. "<br />
- " . $domain. "<br />
- " . $paymethod. "<br />
- " . $paypalemail. "<br />
- " . $sname. "<br />
- " . $street. "<br />
- " .$city. "<br />
- " .$state. "<br />
- " .$zip. "</td>";
- $body = $body."</tr>";
- $body = $body."</table>";
- echo"$body";
- if(mail($to, $subject, $body, $headers))
- {
- echo "</br><font style='font-weight:bold' Registration Form Submitted Succesfully.</font> </br></br>";
- }
- else
- {
- echo "There is an error in Sending the mail";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement