Total Users Online: 0 üye, 512 guest | Tarih/Saat: 2026-08-25 12:26
 
smtp ayarları
2011-08-19 00:46 GMT  oklu Alnt
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 43

Seditio'nun eksi?i olabilir ama host firmalar?n?n mail ?zelli?ini kapatmas?da onlar?n su?u ben ilk defa sende g?rd?m kapatan? ben hi? smtp kullanmad?m kullanmamda kolay kolay neden dersen php'nin mail ?zelli?i daha basit ve kullan??l?.

?lerleyen zamanlarda gerekli incelemeyi yapar?m duruma g?re d?zenleme yapar?z.

fonksiyona smtp fonksiyonu ekleyin deneyin.

Cotonti yeni versionda var nas?l eklendi?i ?rnek olarak bakabilirsin ama o kodlar seditio da ?al??maz bilgin olsun.

:
hp]

/**

 * Custom e-mail send callbacks

 */

$cot_mail_senders = array();





/**

 * Sends mail with standard PHP mail().

 * If cot_mail_custom() function exists, it will be called instead of the PHP

 * function. This way custom mail delivery methods, such as SMTP, are

 * supported.

 *

 * @global $cfg

 * @param string $fmail Recipient

 * @param string $subject Subject

 * @param string $body Message body

 * @param string $headers Message headers

 * @param string $additional_parameters Additional parameters passed to sendmail

 * @return bool

 */

function cot_mail($fmail, $subject, $body, $headers='', $additional_parameters = null)

{

    global $cfg, $cot_mail_senders;



    if (function_exists('cot_mail_custom'))

    {

        return cot_mail_custom($fmail, $subject, $body, $headers, $additional_parameters);

    }



    if (is_array($cot_mail_senders) && count($cot_mail_senders) > 0)

    {

        foreach ($cot_mail_senders as $func)

        {

            $ret &= $func($fmail, $subject, $body, $headers, $additional_parameters);

        }

        return $ret;

    }



    if (empty($fmail))

    {

        return false;

    }

    else

    {

        $sitemaintitle = mb_encode_mimeheader($cfg['maintitle'], 'UTF-8', 'B', "\n");



        $headers = (empty($headers)) ? "From: \"".$sitemaintitle."\" <".$cfg['adminemail'].">\n"."Reply-To: <".$cfg['adminemail'].">\n" : $headers;

        $headers .= "Message-ID: <".md5(uniqid(microtime()))."@".$_SERVER['SERVER_NAME'].">\n";



        $body .= "\n\n".$cfg['maintitle']." - ".$cfg['mainurl']."\n".$cfg['subtitle'];

        $headers .= "Content-Type: text/plain; charset=UTF-8\n";

        $headers .= "Content-Transfer-Encoding: 8bit\n";

        $subject = mb_encode_mimeheader($subject, 'UTF-8', 'B', "\n");

        if (ini_get('safe_mode'))

        {

            mail($fmail, $subject, $body, $headers);

        }

        else

        {

            mail($fmail, $subject, $body, $headers, $additional_parameters);

        }

        return true;

    }

}

Smtp g?ndermen i?in yeni fonksiyon olu?turman gerekiyor burda yazanlar o ?ekilde.
Konuyla İlgili Diğer Başlıklar
Outlook.com POP3 Ayarları
SMTP yardım !
PHP ile CHMOD ayarları
Emlak, Oto Galeri, Rent A Car, ?iir, Edebiyat Script Sipari?lerinizi Verebilirsiniz.
Detaylar ??in: kaan@ntka.org

Seditio 170 ?ndir
Capte M?zik ?ndir
Seditio Toolbar ?ndir

 

Powered by Seditio © 2009-2012 All Rights Reserved