• 25-04-2016, 19:59:27
    #1
    Arkadaşlar aşağıdaki kodun çalışmama sebepleri neler olabilir. Fikirlerinize ihtiyacım var.

    public function mail_gonder($mesaj, $posta, $baslik) {
    $body = '<hr />' . $mesaj . '';
    $g_mail = "destek@xxxx.com";
    $g_isim = "Online xxxx xxxx";
    $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);
    }
  • 25-04-2016, 20:13:49
    #2
    Kullandığın hosting mail fonksiyonunu destekliyor mu sor soruştur bakalım hocam hosting sağlayıcına ?