۰۴-بهمن-۱۳۸۵, ۲۳:۳۱:۰۴
سلام چطور ميشه سورس ارسال ايميل زير را به صورت لينکی دراورد؟
کد ايميل:
<?php
if (isset($_post['send'])){
$from = $_post['from'];
$to = $_post['to'];
$subject = $_post['subject'];
$messege = $_post['messege'];
$headers = "mime-version: 1.0\r\n";
$headers .= "content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "from: $from\r\n";
$headers .= "reply-to: $from\r\n";
$headers .= "x-priority: 1\r\n";
$headers .= "x-msmail-priority: high\r\n";
mail($to,$subject,$messege,$headers) or die("<br><br><br><center>e-mail was <b>not</b> successfully sent!</center>");
die("<br><br><br><center>e-mail was successfully sent!</center>");
}?>
مثلاً به اين صورت در بياد:
http://www.website.com/email.php?from=ir...sage=salam
ممنون ميشام کسی کمک کنه!
کد ايميل:
<?php
if (isset($_post['send'])){
$from = $_post['from'];
$to = $_post['to'];
$subject = $_post['subject'];
$messege = $_post['messege'];
$headers = "mime-version: 1.0\r\n";
$headers .= "content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "from: $from\r\n";
$headers .= "reply-to: $from\r\n";
$headers .= "x-priority: 1\r\n";
$headers .= "x-msmail-priority: high\r\n";
mail($to,$subject,$messege,$headers) or die("<br><br><br><center>e-mail was <b>not</b> successfully sent!</center>");
die("<br><br><br><center>e-mail was successfully sent!</center>");
}?>
مثلاً به اين صورت در بياد:
http://www.website.com/email.php?from=ir...sage=salam
ممنون ميشام کسی کمک کنه!