نه اکشن 2 هستاگه اکشن 3 هست باید از tlf استفاده کنین .
$headers = "";
$headers .= "From: " . $email_name . " <" . $email_address . ">\n";
$headers .= "X-Sender: <" . $email_address . ">\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: <" . $email_address . ">\n";
$headers .= "Content-Type: text/html; charset=UTF-8\n";
@mail($email_address, "Contact Center", "<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />" . $body , $headers);
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
خوب این موضوع مربوطه میشه به بخش PHP نه فلش ، فکر می کنم شما می توانید محتوا در فلش فارسی تایپ کنید
برای این مورد می بایست
1 - فایل PHP خود را به صورت UTF-8 ذخیره کنید
2 - هدر uft-8 برای تابع ایمیل که آخرین آرگمان آن می باشد وارد کنید ؛ به این بخش از یک کد نمونه دقت کنید
PHP:$headers = ""; $headers .= "From: " . $email_name . " <" . $email_address . ">\n"; $headers .= "X-Sender: <" . $email_address . ">\n"; $headers .= "X-Mailer: PHP\n"; $headers .= "X-Priority: 1\n"; $headers .= "Return-Path: <" . $email_address . ">\n"; $headers .= "Content-Type: text/html; charset=UTF-8\n"; @mail($email_address, "Contact Center", "<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />" . $body , $headers);
3 - یک تگ متا در ابتدا محتوایی که به ایمیل ارسال می شود قرار دهید
PHP:<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
البته این مورد بیشتر می بایست در بخش PHP مطرح می شد.
موفق و پیروز باشید.
<?php
// Extreme Design Studio - www.extremestudio.ro
// PHP Flash Contact Form - PHP Script
// Loading Variables
$email = "E-mail: " . $_REQUEST["email"] . "\n\n";
$subject = $_REQUEST["subject"];
$message = "Message: \n---\n" . $_REQUEST["message"] . "\n\n";
$ip = "IP: " . $_SERVER['REMOTE_ADDR'] . "\n";
// The \n character means New Line
// Mixing all variables, including IP
$full_message = $email . $message . $ip;
// Remove the backslashes that appears when entering characters like " or '
$message = stripslashes($message);
$subject = stripslashes($subject);
$sender = stripslashes($sender);
// Sending the mail
// Note: Don't forget to change "[email protected]" to receive the mail from contact form
mail("[email protected]", $subject, $full_message);
?>
این فایل مشکل فارسی نویسی نداره؟سلام دوست من
از این فایل استفاده کن قبلا در یکی از کارهام ازش استفاده کردم
شاد باشید