<?php

  $notifymsg='';

  $edtName = '';

  $edtEmail = '';

  $edtSubject = '';

  $memMsg='';      

if(!empty($_POST["hidSend"])) {

   extract( $_POST );

   

    include_once('class.phpmailer.php');

 

    $mail = new PHPMailer();  

 

	$mail->From       = $edtEmail;

    $mail->FromName   = $edtName;



    $mail->Subject    = "Automatic Bonus Delivery Support Enquiry";

    $mail->AltBody    = ""; // optional, comment out and test	

  

    $mail->MsgHTML("From: $edtName<br>	Email: $edtEmail<br>Message: ".$memMessage);

    $mail->AddAddress("[PUT_YOUR_EMAIL_HERE]","Automatic Bonus Delivery");	  

    if ($mail->Send()) 

	{

	  $msgclass='notifmsg';

	  $notifymsg="NOTIFICATION: Message was sent successfully!<br><br>";

	}

	else

	{

	  $msgclass='errormsg';

  	  $notifymsg="WARNING: Failed to send your message.<br><br>";	

	}

  } 

    

?><html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Automatic Bonus Delivery Plugin</title>

<style type="text/css">

body {

	margin-left: 0px;

	margin-top: 0px;

	margin-right: 0px;

	margin-bottom: 0px;

	background-image: url(images/bg-all.jpg);

}

.text1 {	font-family: Verdana, Geneva, sans-serif;

	font-size: 14px;

	color: #000;

	text-decoration: none;

	font-weight: normal;

}

.text1 {	text-align: justify;

}

.title1 {	font-family: Impact, Arial, Helvetica, sans-serif;

	font-size: 32px;

	color: #C00;

	text-decoration: none;

	font-weight: none;

}

.title2 {	font-family: Impact, Arial, Helvetica, sans-serif;

	font-size: 32px;

	color: #009;

	text-decoration: none;

	font-weight: none;

}

</style>

</head>



<body>

<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>

    <td background="images/bg-top.jpg">&nbsp;</td>

    <td width="808" height="243" background="images/bg-top.jpg"><img src="images/header.jpg" width="808" height="243"></td>

    <td background="images/bg-top.jpg">&nbsp;</td>

  </tr>

  <tr>

    <td>&nbsp;</td>

    <td><table width="808" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bg.jpg" height="100%">

      <tr>

        <td><table width="736" border="0" align="center" cellpadding="0" cellspacing="0">

          <tr>

            <td width="736" valign="top"><div align="center">

              <table width="575" border="0" cellspacing="0" cellpadding="3">

                <tr>

                  <td align="left" class="title2">Support</td>

                </tr>

                <tr>

                  <td align="justify" class="text1"><p>Our team will answer any question related the product. Besides we appreciate any idea that help us to improve it.</p></td>

                </tr>

                <tr>

                  <td><div id="errormsg" class="<?php echo $msgclass;?>"><?php echo $notifymsg?></div></td>

                </tr>

                <tr>

                  <td><form action="" method="post" name="frmMain" id="frmMain" onSubmit="return check();">

                    <table border="0" cellpadding="3" cellspacing="0" class="text1">

                      <tr>

                        <td>Name:</td>

                        <td><input name="edtName" type="text" class="text1" id="edtName" size="47"></td>

                        <td width="40">&nbsp;</td>

                        <td rowspan="4" valign="top">&nbsp;</td>

                      </tr>

                      <tr>

                        <td>Email:</td>

                        <td><input name="edtEmail" type="text" class="text1" id="edtEmail" size="47"></td>

                        <td>&nbsp;</td>

                      </tr>

                      <tr>

                        <td valign="top">Message:</td>

                        <td><textarea name="memMessage" cols="45" rows="5" class="text1" id="memMessage"></textarea></td>

                        <td>&nbsp;</td>

                      </tr>

                      <tr>

                        <td><input name="hidSend" type="hidden" id="hidSend" value="1" /></td>

                        <td><input type="submit" name="button" id="btnSend" value="Submit"></td>

                        <td>&nbsp;</td>

                      </tr>

                      <tr>

                        <td>&nbsp;</td>

                        <td>&nbsp;</td>

                        <td>&nbsp;</td>

                        <td valign="top">&nbsp;</td>

                      </tr>

                    </table>

                  </form></td>

                </tr>

                <tr>

                  <td height="100" align="center">&nbsp;</td>

                </tr>

                <tr>

                  <td height="10" align="center"><font face="Arial" size="2"><a href="index.html">Home</a>&nbsp;&nbsp; <a href="tutorials.html">Tutorials</a>&nbsp;&nbsp; <a href="support.php">Support</a>&nbsp;&nbsp; <a href="affiliates.php">Affiliates</a>&nbsp;&nbsp; <a href="privacy.html">Privacy</a></font></td>

                </tr>

              </table>

              <p>&nbsp;</p>

</div></td>

          </tr>

        </table></td>

      </tr>

    </table></td>

    <td>&nbsp;</td>

  </tr>

  <tr>

    <td>&nbsp;</td>

    <td height="114"><img src="images/footer.jpg" border="0" width="808" height="114"></td>

    <td>&nbsp;</td>

  </tr>

</table>

</body>

</html>

