<HTML>
<HEAD>
<TITLE>WEBRAMZ™ PHPContact v0.3...</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
<style type='text/css'>
.text01 { font: normal 8pt Tahoma, 'Times New Roman', Arial, sans-serif; color: #668899; }
A { color: #3399CC; font-family: Tahoma,Times, Arial, sans-serif; font-style: normal; text-decoration : none; font-size: 8pt; }
A:hover{ color: Red; }
.text0{font: Bold 10pt Tahoma, 'Times New Roman', Arial,sans-serif; color: #FFFFFF; }
.Select2{ color: #000033; font-size: 8pt; font-family: Tahoma, Times, Arial, sans-serif; background-color: #FAFAFA; border: 1px solid #779988;}
</style>
</HEAD>
<BODY class="text01">
<DIV align="center" dir="rtl">
<?PHP
#######################################################
##------------------------------------- PHPContact v0.3 ----------------------------------------------------##
## behzad nategh ##
## www.webramz.com ##
## This script is free, you can use & edit it as you like... ##
#######################################################
error_reporting(0);
if (isset($_POST["send"])) {
$name = $_POST["name"];
$company = $_POST["company"];
$email = $_POST["email"];
$tel = $_POST["tel"];
$fax = $_POST["fax"];
//$subject = $_POST["subject"];
$body = $_POST["body"];
/* Message to show if mail sent successfuly */
$Mail_Success = "با تشکر، درخواست شما دريافت گرديد و پس از بررسي با شما تماس گرفته خواهد شد.";
/* Message to show if mail sent successfuly */
$Mail_Fail = "ارسال درخواست شما با خطا متوقف گرديد. لطفا مجددا سعي نماييد...";
/* CHANGE Mail Subject below to your desirable one */
$MailSubject = "YourSiteName - Customer feedback...";
/* Mail Title... */
$Title = "Your Site Brand Name Here";
/* Mail From title/email CHANGE TO YOUR TITLE & EMAIL */
$MailFrom = "Site Contact Form <[email protected]>";
/* your email address here, for reciving a copy of user feedback */
$MailTo = "[email protected]";
/* user email below, ** DO NOT CHANGE ** */
$MailCc = $email;
/* Bcc copy of email, if you provide one */
$MailBcc = "";
/* Mail Charset, DO NOT CHANGE if you don't know... */
$Charset = "utf-8";
/* message_header in html format */
$Message_header = "
<html><head><title>$Title</title>
<meta http-equiv='content-Type' content='text/html; charset=$Charset' >
<style type='text/css'>
.text8 { font: normal 8pt Tahoma, 'Times New Roman', Arial, sans-serif; color: #224465; }
A { color: #3399CC; font-family: Tahoma,Times, Arial, sans-serif; font-style: normal; text-decoration : none; font-size: 8pt; }
A:hover{ color: Red; }
.text00{font: Bold 10pt Tahoma, 'Times New Roman', Arial,sans-serif; color: #FFFFFF; }
.Select2{ color: #000033; font-size: 8pt; font-family: Tahoma, Times, Arial, sans-serif; background-color: #FAFAFA; border: 1px solid #776688;}
</style>
</head>
<body align='center' class='text8'>
<table border='0' align='center' dir='rtl' class='Select2' width='600' cellpadding='4' cellspacing='1'>
<tr><td align='center' bgcolor='#6688DD' class='text00' height='20'>$Title</td></tr>
<tr><td align='right' dir='rtl' class='text8'><br>با تشکر از شما، درخواست شما دريافت گرديد. بزودي درخواست شما مورد رسيدگي قرار گرفته و پاسخ آنرا دريافت خواهيد نمود.</td><tr>";
/* message body ** DO NOT CHANGE ** */
$Message ="<tr><td dir='rtl' class='text8'>مشخصات کاربري شما:
<br>نام: $name
<br>شرکت: $company
<br>ايميل: $email
<br>تلفن: $tel
<br>فکس: $fax
<br>متن پيام: $body
</td></tr>";
$Message_footer = "
<tr><td dir='rtl' align='justify' class='text8'>هر گونه متن اضافي جهت اطلاع رساني به کاربر در اين قسمت قرار ميگيرد...
هر گونه متن اضافي جهت اطلاع رساني به کاربر در اين قسمت قرار ميگيرد...
هر گونه متن اضافي جهت اطلاع رساني به کاربر در اين قسمت قرار ميگيرد...</td></tr>
<tr><td align='center' bgcolor='#6688DD' dir='ltr' class='text00'>www.YourSiteName.com</td></tr>
</table></body></html>";
$Message = $Message_header.$Message.$Message_footer;
/* To send HTML mail, we will set the Mime & Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=$Charset\r\n";
$headers .= "X-Mailer: PHPContact\r\n";
/* additional headers */
$headers .= "From: $MailFrom\r\n";
$headers .= "Cc: $MailCc\r\n";
$headers .= "Bcc: $MailBcc\r\n";
$headers .= "Return-Path: $MailFrom\r\n";
//echo $Message;
/* and now mail it */
if (mail($MailTo, $MailSubject, $Message, $headers)) {
echo "<p align='center' dir='rtl'><font color='green'> ".$Mail_Success."</font></p>";
}
else {
echo "<p align='center' dir='rtl'><font color='red'> ".$Mail_Fail."</font></p>";
}
}
else {
?>
<FORM action="<? $_SERVER['PHP_SELF']; ?>" method="POST">
<TABLE width="400" cellpadding="4" cellspacing="0" border="0" align="center" class="Select2">
<TR>
<TD colspan="2" bgcolor="#466789" align="right"> </TD>
</TR>
<TR>
<TD colspan="2" align="right"> </TD>
</TR>
<TR>
<TD width="15%">نام: </TD>
<TD width="85%"><INPUT name="name" value="" size="40" maxlength="20" dir="rtl"></TD>
</TR>
<TR>
<TD>شرکت: </TD>
<TD><INPUT type="text" name="company" value="" size="40" maxlength="25" dir="rtl"></TD>
</TR>
<TR>
<TD>ايميل: </TD>
<TD><INPUT type="text" name="email" value="" size="40" maxlength="200" dir="ltr"></TD>
</TR>
<TR>
<TD>تلفن: </TD>
<TD><INPUT type="text" name="tel" value="" size="40" maxlength="14" dir="ltr"></TD>
</TR>
<TR>
<TD>فکس: </TD>
<TD><INPUT type="text" name="fax" value="" size="40" maxlength="14" dir="ltr"></TD>
</TR>
<TR>
<TD>متن پيام: </TD>
<TD><TEXTAREA name="body" cols="32" rows="4" dir="rtl">لطفا پيام خود را وارد کنيد...</TEXTAREA></TD>
</TR>
<TR>
<TD colspan="2" align="right">
<INPUT type="submit" name="send" value=" ارسال " class="Select2">
</TD>
</TR>
<TR>
<TD colspan="2" align="right"> </TD>
</TR>
<TR>
<TD colspan="2" bgcolor="#466789" align="right"> </TD>
</TR>
</TABLE>
</FORM>
<?
/* end of script */
}
?>
</DIV>
</BODY>
</HTML>