این صفحه ارسال ایمیل رو میشه به منم یاد بدید؟
يك نمونه از صفحه ارسال ايميل
[code:1]<?php
if($sec=="sendmail")
{
if (@mail('
[email protected]', '$title', 'New comment form $email n $message')) {
header("location:contact.php?op=com");
} else {
header("location:contact.php?op=uncom");
}
}
?>
<p align=center>
<?php
if($op=="com")
echo "نـامه شمـا بـا موفقيت فرستاده شد";
else if($op=="uncom")
echo "<font color=red>نـامه شمـا فرستاده نشد</font>";
?></p>
<div align="center">
<center>
<form action="contact.php?sec=sendmail" method=post>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="584" height="336" bgcolor="#E8F8D0">
<tr>
<td width="584" height="336" align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="441" height="265">
<tr>
<td width="625" height="35" valign="middle" align="right"><input type=text value="<?php echo $title;?>" name=title dir=rtl style="border-style: solid; border-width: 1;font-family:tahoma" onkeypress="FKeyPress()" onkeydown="FKeyDown()">
موضوع
</tr>
<tr>
<td width="625" height="53" valign="middle" align="right">
<input type=text name=email dir=ltr style="border-style: solid; border-width: 1;font-family:tahoma">
ايميل </tr>
</tr>
<tr>
<td width="625" height="15" valign="top" align="right">
متن نامه </tr>
</tr>
<tr>
<td width="625" height="153" valign="top" align="right">
<textarea name=message rows="9" cols="52" style="border-style: solid; border-width: 1;font-family:tahoma" dir=rtl ></textarea> </tr>
</tr>
<tr>
<td width="625" height="45" valign="top" align="right">
<input type=submit value="بفرست" style="border:3px dotted #E2EEB2; font-family: Tahoma;"></tr>
</tr>
</table>
</tr>
</table>
</form>
<a href=".">صفحه اصلي</a><br>
<a href="javascript:history.back(1)"><font color=blue>بازگشت</font></a>
</center>
</div>
[/code:1]