public function mail_gonder($mesaj,$posta,$baslik)
{
$body='
'.$mesaj.'';
$g_mail = "gonderenmail@mail.com";
$g_isim = "Gonderen Isim";
$giden = "".$posta."";
$baslik = "".$baslik."";
$header = "From: $g_isim <".$g_mail.">\n";
$header .= "Reply-To: $g_isim <".$g_mail.">\n";
$header .= "Return-Path: $g_isim <".$g_mail.">\n";
$header .= "Delivered-to: $g_isim <".$g_mail.">\n";
$header .= "Date: ".date(r)."\n";
$header .= "Content-Type: text/html; charset=utf-8\n";
$header .= "MIME-Version: 1.0\n";
$header .= "Importance: Normal\n";
$header .= "X-Sender: $g_isim <".$g_mail.">\n";
$header .= "X-Priority: 3\n";
$header .= "X-MSMail-Priority: Normal\n";
$header .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510\n";
//$header .= "Disposition-Notification-To: $g_isim <".$g_mail.">\n";
$header .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869\n";
mail($giden, $baslik, $body, $header);
}


Kullanmak icin mail_gonder("Mesaj","Yollanacak Mail Adresi", "Mail Basligi"); bu sekilde kullanabilirsiniz