<?php
baglanti();
$siteadresi = SITE_ADRESI;
$g_mail = SITE_EPOSTA;
$g_isim = SITE_ADI;
$uye_liste = mysql_query("SELECT eposta FROM uyeler WHERE onay='1' AND bulten='EVET' ORDER BY uyeno DESC");
while ($uye_cek = mysql_fetch_array($uye_liste)) {
$email = $uye_cek["eposta"];
$mailim[] = "<html><head>
<style>
.gir {margin-right:5px;}
.tarihi {font-color:#000000;}
td {color:#0087ab;font-weight:bold; font-family:Tahoma;}
</style>
</head><body><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td width=100%><H3>".$g_isim." Bülteni (Günlük E-Posta Bildirimi)</H3></td></tr>";
$haber_liste1 = mysql_query("SELECT * FROM haberler WHERE onay='EVET' ORDER BY haberno DESC LIMIT 1");
while ($mysor1 = mysql_fetch_array($haber_liste1)) {
$haberno = $mysor1["haberno"];
$hbaslik = $mysor1["hbaslik"];
$hozet = $mysor1["hozet"];
$htarih = tarih_bicimlendir($mysor1["htarih"]);
$resim = $mysor1["resim"];
$mailim[] = "<tr><td width=100% align=left>
<a href=".$siteadresi."/haber/".$haberno."/".dost_link($hbaslik).">
<img src=".$siteadresi."/resim.php?resim=".$rd."/".$resim."&en=120&boy=90 width=120 height=90
border=0 align=left vspace=3 hspace=3 class=gir></a>
<div><a href=".$siteadresi."/haber/".$haberno."/".dost_link($hbaslik).">".$hbaslik."</a></div>
<div>".$hozet."</div>
<div class=tarihi>".$htarih."</a></div>
</td></tr>";
}
$mailim[] = "</table></body></html>";
$mailimx = implode("",$mailim);
echo $mailimx;
$baslik = "Haber Bülteni";
$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=iso-8859-9\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";
if (mail($email, $baslik, $mailimx,$header)) {
echo 'Haber '.$email.' Adresine Başarıyla Gönderildi.';
}
}
?>bu sayfaya cron-jobs ile çalıştırma komutu verildi. fakat mail gitmiyor.browserda sayfayı açıyorum. Herhangi bir hata göremiyorum. Sizce hata nerede olabilir.