payamix
21 September 2004, 10:19 PM
من اينو درست كردم اما كار نميكنه :|
لطفن اگه ايرادش رو گرفتين توضيح هم بدين تا ياد بگيرم ٬ مرسي :wink:
<?
$email_address = "webmaster@xxx.com";
$email_name = "Visitor Contact";
$body = "";
$body .= "Name: " . $name . "\n";
$body .= "email: " . $email . "\n";
$body .= "Message:\n " . ereg_replace("\n", "\n ", $message) . "\n";
$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, "EOF", "<pre>" . $body . "</pre>", $headers);
if (mail($email_address, "EOF", "<pre>" . $body . "</pre>", $headers)) {
print("Your Comment was sent to the Webmaster Successfully.");
} else {
print ("Something went wrong with the script! Please try again.");
?>
لطفن اگه ايرادش رو گرفتين توضيح هم بدين تا ياد بگيرم ٬ مرسي :wink:
<?
$email_address = "webmaster@xxx.com";
$email_name = "Visitor Contact";
$body = "";
$body .= "Name: " . $name . "\n";
$body .= "email: " . $email . "\n";
$body .= "Message:\n " . ereg_replace("\n", "\n ", $message) . "\n";
$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, "EOF", "<pre>" . $body . "</pre>", $headers);
if (mail($email_address, "EOF", "<pre>" . $body . "</pre>", $headers)) {
print("Your Comment was sent to the Webmaster Successfully.");
} else {
print ("Something went wrong with the script! Please try again.");
?>