[Linux-programlama] Re: PHP ile HTML olarak gönderme

---------

[Linux-programlama] Re: PHP ile HTML olarak gönderme

From: Brend <brendtumi_at_gmail.com>
Date: Thu, 9 Oct 2008 19:19:14 +0300
Message-ID: <89a048d90810090919s186b167bl5bd5ef404d998f85@mail.gmail.com>

Bu fonksiyon ile deneyiniz birde...

function sendMailviaMailFunc($emailaddress, $emailsubject, $body,
$from_email) {
    $n = "\r\n";
    $headers = "";
    $mime_boundary = md5 ( time () );
    $headers .= "From: " . $from_email . $n;
    $headers .= "Reply-To: " . $from_email . $n;
    $headers .= "Return-Path: " . $from_email . $n;
    $headers .= "X-Mailer: PHP v" . phpversion () . $n;
    $headers .= "MIME-Version: 1.0" . $n;
    $headers .= "Content-Type: multipart/related; boundary=\"" .
$mime_boundary . "\"" . $n;
    $headers .= "Content-Type: text/plain; charset=utf-8" . $n;
    $headers .= "Content-Type: text/html; charset=utf-8" . $n;
    $headers .= "Content-Transfer-Encoding: 8bit" . $n . $n;
    $msg = "";
    $msg .= $body . $n . $n;
    return mail ( $emailaddress, $emailsubject, $msg, $headers );
}

09 Ekim 2008 Perşembe 18:35 tarihinde Güyçmyrat Amanmyrat <
guychmyrat_at_yahoo.com.tr> yazdı:

> Merhabalar.
>
> PHP'nin mail fonksiyonu ile mail gönderiyorum.
>
> Birisinde : Doğru olarak aşağıdaki şekilde geliyor. Yani aşağıdaki şekilde
> headerda sorunsuz.
>
>
> Received: (qmail 18724 invoked from network); 9 Oct 2008 16:57:00 +0300
> Received: from host-217-195-203-55.teklan.com.tr (HELO mail.abc.com)
> (217.195.203.55)
> by mailhost01.abc.com with SMTP; 9 Oct 2008 16:56:59 +0300
> Received: from www.abc.com
> by mail.abc.com (Mail Server) with ASMTP id MQV44378
> for <gucmurat_at_abc.com.tr>; Thu, 09 Oct 2008 16:57:00 +0300
> Date: Thu, 9 Oct 2008 16:43:33 +0300
> Return-Path: abc_at_abc.com
> To: aaa_at_abc.com.tr
> From: Abc <toist_at_abc.com>
> Subject: Davetiye http://www.abc.com
> Message-ID: <c26ed7a1d55372de93056c45f7f6ff89_at_www.abc.com>
> X-Priority: 3
> X-Mailer: PHPMailer [version 1.73]
> MIME-Version: 1.0
> Content-Transfer-Encoding: 8bit
>
>
> diğeri ise şu şekilde :
>
> Received: (qmail 12983 invoked from network); 9 Oct 2008 16:48:56 +0300
> Received: from ip-80-255-244-71.signet.nl (HELO debianweb.com)
> (80.255.244.71)
> by mailhost01.abc.com with (AES256-SHA encrypted) SMTP; 9 Oct 2008
> 16:48:56
> +0300
> Received: from www-data by debianweb.com with local (Exim 4.63)
> (envelope-from <info_at_abcd.com>)
> id 1KnwTc-0006tg-Dl
> for aaa_at_abcd.com.tr; Thu, 09 Oct 2008 16:26:52 +0200
> Date: Thu, 9 Oct 2008 16:26:52 +0200
> To: gucmurat_at_abc.com.tr
> From: yobombo <info_at_abcd.com>
> Subject: Invitation From Abcd
> Message-ID: <b407ca3634295fb6ae072172438bd285_at_www.abcd.com>
> X-Priority: 3
> X-Mailer: PHPMailer [version 1.73]
> MIME-Version: 1.0
> Content-Transfer-Encoding: 8bit
> Content-Type: text/plain; charset="UTF-8"
>
>
> İkisindende mail şu şekilde gönderiliyor :
>
> <html><head><title>denemez</title></head><body>deneme yazi </body></html>
>
>
> ilkinde : deneme yazi olarak doğru geliyor.
> ikincisinde html-ler ile beraber geliyor. Notmal browser ile baktığımda
> sorun yok ama Outloga sorunlu düşüyor. Yani outlookta html kodlarını
> göstermeden nasıl mail gönderebilirim?
> Headerdemi bir sorun var yoksa başka yerdemi ?
>
> Teşekkürler.
>
> __________________________________________________
> Yahoo! kullanıyor musunuz?
> İstenmeyen postadan bıktınız mı? Yahoo! Posta'da piyasanın en iyi
> istenmeyen posta korunması var
> http://tr.mail.yahoo.com
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama_at_liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>

-- 
İyi çalışmalar;
Tümay ÇEBER

_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Thu 09 Oct 2008 - 18:37:10 EEST

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.