عزیز یه فایل send-mail.php بساز
و این کد رو درش قرار بده
بجا arminnaami@yahoo.com ایمیل خودت بزار<?php
if (isset($_POST['submit'])) {
$from = $_POST["from"];
$to = "arminnaami@yahoo.com";
$subject = $_POST["subject"];
$content = $_POST["message"];
$headers = "From: $from\r\nReply-To:arminnaami@yahoo.com";
$body = $content;
if (mail($to, $subject, $body, $headers)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
}
?>
بعد دکمه رو به send-mail.php وصل کن همین
موفق باشی...
---------- Post added at 09:39 PM ---------- Previous post was at 09:35 PM ----------
اگه هم فروم رو هنوز نساختی از این کد استفاده کن ...!
کد:<form action="send-mail.php" method="post"> <span class="style1"> <strong>عنوان :</strong></span> <input type="text" name="from" style="width: 500px" /> <br /> <span class="style1"> <strong>پيغام :</strong></span> <input type="text" name="message" style="height: 322px; width: 506px" /> <br /> <input type="submit" name="submit" value="ارسال" style="width: 256px; font-weight: 700; text-align: center; color: #FF3300; text-decoration: underline; background-color: #333333; margin-left: 29px;" /><input id="Reset1" type="reset" value="باز نویسی" /></form>





پاسخ با نقل قول