Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Mail i hotmail spam filter!

[es] :: PHP :: Mail i hotmail spam filter!

[ Pregleda: 2079 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

m_k
Sarajevo [BiH]

Član broj: 29364
Poruke: 340
*.PPPoE-5006.sa.bih.net.ba.

Sajt: www.mkscripts.net


Profil

icon Mail i hotmail spam filter!15.12.2006. u 11:54 - pre 211 meseci
Treba mi skripta koja salje mailove koji prolaze hotmail spam filter.

pokusao sam sa ovom (i sa jos par koje sam nasao na ovom forumu) ali nsita ne radi:
Code:
$set['naziv'] = "moj site online";
$set['admin_mail'] = "[email protected]";


function mailTo($to, $sub, $text)
    {
        global $set;
        
        // Headers        
        $boundary = md5(uniqid(time()));
        $headers = "Reply-To: ".$set['admin_mail']."\r\n";
        $headers .= "From: ".$set['naziv']." <".$set['admin_mail'].">\r\n";
        $headers .= "Return-path: ".$set['admin_mail']."\r\n";
        $headers .= "MIME-Version: 1.0\r\n";
        $headers .= "X-Priority: 3\r\n";
        $headers .= "X-MSMail-Priority: Normal\r\n";
        $headers .= 'X-Mailer: PHP/' . phpversion() . "\r\n"; 
        $headers .= "Content-Type: multipart/alternative; \r\n";
        $headers .= "    boundary=\"----=_Part_".$boundary."\"\r\n";
        $headers .= "\r\n------=_Part_".$boundary."\r\n";
        $headers .= "Content-Type: text/plain; charset=ISO-8859-1; format=flowed\r\n";
        $headers .= "Content-Transfer-Encoding: 7bit\r\n";
        $headers .= "Content-Disposition: inline\r\n";
        $headers .= "\r\n".strip_tags($text)."\r\n\r\n";
        $headers .= "------=_Part_".$boundary."\r\n";
        $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
        $headers .= "Content-Transfer-Encoding: 7bit\r\n";
        $headers .= "Content-Disposition: inline\r\n";
        $headers .= "\r\n".$text."\r\n\r\n";
        $headers .= "------=_Part_".$boundary."--\r\n";
        
        // Salje e-mail
        $send = mail($to, $sub, '', $headers);
                
        // Provjerava da li je e-mail poslan
        if (!$send)
            {
                return false;
            }
        else
            {
                return true;
            }
    }
    
echo mailTo("[email protected]", "Pomozi mi", "<html><body><b>Ovo je jedan dugiii text!</b></body></html>");


Ovo $set['admin_mail'] je postojeci mail koji se nalazi na istom serveru kao i skripta.
May the force be with you...
 
Odgovor na temu

Jezdimir Lončar
Aka Blazeme
PHP/jQuery Dev, BildStudio
Crna Gora / Pljevlja

Član broj: 74833
Poruke: 674
*.com
Via: [es] mailing liste

Jabber: jezdonet@gmail.com


+4 Profil

icon Re: Mail i hotmail spam filter!15.12.2006. u 19:13 - pre 211 meseci
Hm... Pa probaj da stavis umjesto HTML koda (sa <html>,<head> itd.) Nesto na
primjer:
Code:

Ovo je jedan <b>Duugi!</b> <i>text</i>

I nemoj ispred mailTo(); Stavaljati taj echo...
Probaj znaci:
Code:

mailTo("[email protected]","Test","Ovo je jedan <b>Duugi!</b> <i>text</i>!")
or die("Email nije poslati!");


------=_Part_41288_8192822.1166209448056
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

esauth:233436:6a4d6a4e898b437b232891a4c3cb8f4a<br><span class="sg">
“I never think of the future - it comes soon enough.” - Albert Anštajn (Albert Einstein)
 
Odgovor na temu

[es] :: PHP :: Mail i hotmail spam filter!

[ Pregleda: 2079 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.