»Forumlar »SE ? Support »smtp ayarları
  https://seditio.com.tr/eski1/forums.php?m=posts&q=688
          Geri Dön      -      Sayfayı Yazdırmak için tıklayın
Author: TheRaskol, Posted: 2010-06-13 18:18 GMT.
Merhaba

sitede bazen mail g?nderme sorunu ya??youm host firmas?na sordu?umda mail smtp ayarlar?n?z? mail.xxx.com yapmam gerekti?i s?ylendi.

Acaba seditio'da bunu nereden yapabilirim te?ekk?rler?
Author: Kaan, Posted: 2010-06-13 20:39 GMT.
T3 Postman Eklentisini Kurman gerekiyor Postman eklentisini kurdukdan sonra a?ag?daki ayarlar? yap?n?z..

Posrman eklentisini buradan indirebilirsiniz..
https://seditio.com.tr/eski1/page.....t=postman

system/functions.php A?ag?dakini bulun
:
hp]function sed_mail($fmail, $subject, $body, $headers='')

    {

    global $cfg;



    if(empty($fmail))

        {

        return(FALSE);

        }

    else

        {

        $headers = (empty($headers)) ? "From: \"".$cfg['maintitle']."\" <".$cfg['adminemail'].">\n"."Reply-To: <".$cfg['adminemail'].">\n"."Content-Type: text/plain; charset=".$cfg['charset']."\n" : $headers;

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

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

        sed_stat_inc('totalmailsent');

        return(TRUE);

        }

    }

Alttaki ile de?i?tiriniz.
:
hp]function sed_mail($fmail, $subject, $body, $headers='')

{

    global $cfg;



    if(empty($fmail)) return(FALSE);



    require("plugins/postman/inc/postoffice.class.php");

    $PostMan = new PostOffice();

    $PostMan->IsHTML(false);

    $PostMan->FromName = $cfg['maintitle'];

    $PostMan->Subject = $psoptions['subject'];

    $PostMan->AddAddress($fmail);

    $PostMan->Subject = $subject;

    $PostMan->Body = $body;

    $res['email'] = $PostMan->Send();  

    $res['error_info'] = $PostMan->ErrorInfo;

    $PostMan->ClearAddresses();  

   

    if($res['email'])

    {

        sed_stat_inc('totalmailsent');

        return(TRUE);  

    }

    else  

    {

        return(FALSE);

    }

Bu de?i?ikli?i yapt?kdan sonra sadece Smtp ?zerinden mail yollayabilirsiniz.
Author: huzuristan, Posted: 2011-03-18 15:02 GMT.
hocam function ?zerinde de?i?ikli?i yapt???mda site alm?yor beyaz sayfa ??k?yor. neden olabilir?
Author: Kaan, Posted: 2011-03-18 15:14 GMT.
Fonksiyonda de?iklik yapmana gerek yok defalarca test ettik ve sorunsuz ?ekilde smtp yollabiliyor eklenti ?zerinden.

Yapman gereken site kontrol (cpanel) panelinden bir hesap a?mak hepsi bu kadar.
Author: huzuristan, Posted: 2011-03-18 15:23 GMT.
ileti?im sayfas?ndan mail g?nderirken a?a??daki hatay? veriyor.

Warning: mail() has been disabled for security reasons in /var/www/vhosts/huzuristan.com/httpdocs/system/functions.php on line 2054
Author: Kaan, Posted: 2011-03-18 15:29 GMT.
ileti?imin mail g?nderme kodlar?n? eklermisin.? Sadece mail g?nderme kodlar?.
Author: huzuristan, Posted: 2011-03-18 15:33 GMT.
contactus.php ?u ?ekilde

<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/contactus/contactus.php
Version=102
Updated=2006-apr-24
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=contactus
Part=main
File=contactus
Hooks=standalone
Tags=
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

==================== */

if (!defined('SED_CODE') || !defined('SED_PLUG')) { sed_diefatal('Wrong URL.'); }

$a = sed_import('a','P','ALP');
$recipient = sed_import('recipient','P','INT');
$subject = sed_import('subject','P','INT');
$message = sed_import('message','P','TXT');
$name = sed_import('name','P','STX');
$email = sed_import('email','P','STX');

$plugin_title = $L['plu_title'];


if ($a=="send") {

if (!is_numeric($recipient) || !is_numeric($subject) || empty($message) || empty($name) || empty($email))
{ $error = $L['plu_empty']."<br />\n"; }

if (!ereg("([[:alnum:]\.\-]+)(\@[[:alnum:]\.\-]+\.+)", $email))
{ $error .= $L['plu_wrongemail']."<br />\n"; }

if (empty($error))
{

$cfgrecipients = explode(";", $cfg['plugin']['contactus']['email']);
$rectr = trim($cfgrecipients[$recipient]);
$cfgsubjects = explode(";", $cfg['plugin']['contactus']['subjects']);
$subrt = trim($cfgsubjects[$subject]);

$headers = ("From: ".$name." <".$email.">\n");
$body = $L['plu_notice']." ".$name."\n";
$body .= $L['plu_message'].": \n\n".$message;
sed_mail($rectr, $subrt, $body, $headers);

$ok = $L['plu_ok'];
unset($recipient, $subject, $message, $name, $email);
}

}

if (!empty($error)) { $plugin_body .= "<span style=\"color: #FF0000;\">".$error."</span>"; }
if (!empty($ok)) { $plugin_body .= "<span style=\"color: #33CC33;\">".$ok."</span>"; }

$plugin_body .= "<form action=\"plug.php?e=contactus\" method=\"post\">\n";
$plugin_body .= "<table class=\"cells\">";
$plugin_body .= "<tr><td>".$L['plu_recipient'].": </td><td>";

//Build recipients array and selectbox

$cfgrecipients = explode(";", $cfg['plugin']['contactus']['email']);
$plugin_body .= "<select name=\"recipient\">\n";
$iii=0;
foreach($cfgrecipients as $x) {
if (!empty($x)) {
$recipients[$iii] = trim($x);
$whatdel = strrchr($recipients[$iii], "<");
$recipients[$iii] = str_replace($whatdel, "", $recipients[$iii]);
$recipients[$iii] = trim($recipients[$iii]);
if ($iii==$recipient || (empty($recipient) && $iii==0)) {
$plugin_body .= "<option value=\"".$iii."\" selected=\"selected\">".$recipients[$iii]."</option>\n";
} else {
$plugin_body .= "<option value=\"".$iii."\">".$recipients[$iii]."</option>\n";
}
$iii++;
}
}
$plugin_body .= "</select>\n";

$plugin_body .= "</td></tr>";
$plugin_body .= "<tr><td>".$L['plu_subject'].": </td><td>";

//Build subjects array and selectbox

$cfgsubjects = explode(";", $cfg['plugin']['contactus']['subjects']);
$plugin_body .= "<select name=\"subject\">\n";
$iii=0;
foreach($cfgsubjects as $x) {
if (!empty($x)) {
$subjects[$iii] = trim($x);
if ($iii==$subject || (empty($subject) && $iii==0)) {
$plugin_body .= "<option value=\"".$iii."\" selected=\"selected\">".$subjects[$iii]."</option>\n";
} else {
$plugin_body .= "<option value=\"".$iii."\">".$subjects[$iii]."</option>\n";
}
$iii++;
}
}
$plugin_body .= "</select>\n";
$plugin_body .= "</td></tr>\n";

$plugin_body .= "<tr><td>".$L['plu_sendername'].": </td><td>\n";
$inname = (empty($name)) ? $usr['name'] : sed_cc($name);
$plugin_body .= "<input type=\"text\" name=\"name\" value=\"".$inname."\" size=\"32\" maxlength=\"64\" />\n";
$plugin_body .= "</td></tr>\n";

$plugin_body .= "<tr><td>".$L['plu_sendermail'].": </td><td>\n";
$plugin_body .= "<input type=\"text\" name=\"email\" value=\"".sed_cc($email)."\" size=\"32\" maxlength=\"64\" />\n";
$plugin_body .= "</td></tr>\n";

$plugin_body .= "<tr><td>".$L['plu_message'].": </td><td>\n";
$plugin_body .= "<textarea cols=\"48\" rows=\"8\" name=\"message\">".sed_cc($message)."</textarea>\n";
$plugin_body .= "</td></tr>\n";
$plugin_body .= "<tr><td colspan=\"2\">\n";
$plugin_body .= "<input type=\"hidden\" name=\"a\" value=\"send\" />\n";
$plugin_body .= "<input type=\"submit\" value=\"".$L['plu_send']."\" />\n";
$plugin_body .= "</td></tr>\n";
$plugin_body .= "</table>\n";
$plugin_body .= "</form>\n";

?>
Author: Kaan, Posted: 2011-03-18 15:39 GMT.
Senin hostda smtp g?nderilmiyorum san?r?m
Warning: mail() has been disabled for security reasons
Kapal? diyor mail ?zelli?i
Author: huzuristan, Posted: 2011-03-18 15:43 GMT.
smtp kullan?yorum di?er domainlerde. phpmail ?zelli?i kapal? g?venlik i?in sadece. nas?l mail alabilirim acaba? ne yapmak laz?m
Author: Kaan, Posted: 2011-03-18 15:48 GMT.
bunda smtp mail de kapal? san?r?m hatada kapal? oldugunu g?steriyor.

?undan da olabilir eklenti phpmail kullan?yor smtp kullanm?yor bu nedenlede ?al??m?yor olabilir.
Author: huzuristan, Posted: 2011-03-18 15:53 GMT.
phpmail ile mail at?lm?yordu, bu hatay? veriyordu form. bu eklentiyi y?kledim hata devam ediyor yani. Smtp ayarlar?n? girdim fakat php ile g?ndermeye ?al???yor halen. Ba?ka bir tavsiyen var m? kaan
Author: Kaan, Posted: 2011-03-18 16:00 GMT.
O eklentinin ileti?im eklentisiyle bir baglant?s? yok o eklentiden g?nderdi?in mailler gidiyormu.?
Sadece ileti?im eklentidemi sorun.?
Author: huzuristan, Posted: 2011-03-18 16:35 GMT. This post was edited by huzuristan (2011-03-18 16:53 GMT, 5639 Gün ago)
evet hocam ileti?im sayfas?nda benim sorunum =)

son mesaj 18 dakika ?nce

ileti?im sayfas?n? nas?l smtp maile uyarlar?m acaba? ben yanl?? anlad?m ileti?imle alakal? sand?m k.bakma
Author: Kaan, Posted: 2011-03-18 17:35 GMT.
fonksiyon.php yi a? alttakini bul
Kod:
if(empty($fmail))
        {
        return(FALSE);
        }

Alttakiyle de?i?tir dene
Kod:
if(empty($fmail))
        {
require("plugins/postman/inc/postoffice.class.php");
        return(FALSE);
        }
Author: huzuristan, Posted: 2011-03-18 23:46 GMT.
yine a?a??daki hata mesaj? gekiyor

Warning: mail() has been disabled for security reasons in /var/www/vhosts/httpdocs/system/functions.php on line 2055
Author: Kaan, Posted: 2011-03-19 00:09 GMT.
Mail fonksiyonunu a?t?rmal?s?n ?uan i?in ba?ka ??z?m yok benimde kapal? sunucuda test etmen gerekiyor eklenti veya modifikasyon yapmak i?in kapal? sunucuyuda bulmak zor gibi ilk defa sende g?rd?m mail fonksiyonunu kapatt?g?n?
Author: huzuristan, Posted: 2011-08-17 00:44 GMT.
Uzun zaman oldu ama konuyu tekrar a?t?m

Php mail art?k ?o?u sunucularda kapal?. ?leti?im sayfas?ndan halen mailleri alam?yorum.

SMTP adresi kullan?c? ad? vs girmem gerekiyor. Bunu nas?l yapabilirim?
Author: Kaan, Posted: 2011-08-17 01:55 GMT.
?ncelikle cpanelden kendine bir mail adresi a?mal?s?n.
Email Accounts > frontend/x3/mail/pops.html

Hesab? olu?turdukdan sonra Email Authentication Aktif etmelisin
Current Status: Status Enable olmal?

Ana Sayfada Webmail baglant?s?na t?kla.
A??lan sayfada Configure Mail Client t?kla.

A??lan sayfada Manuel ayarlar? g?rebilirsin a?ag?daki gibi.

Manual Settings

Mail Server Username: cpanel kullan?c? ad?n
Incoming Mail Server: mail.site.com
Incoming Mail Server: (SSL) site.mailsunucusu.com
Outgoing Mail Server: mail.site.com (server requires authentication) port 587
Outgoing Mail Server: (SSL) site.mailsunucusu.com (server requires authentication) port 465
Supported Incoming Mail Protocols: POP3, POP3S (SSL/TLS), IMAP, IMAPS (SSL/TLS)
Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS)

Burada sana gerekli olan

Mail Server Username: cpanel kullan?c? ad?n
Incoming Mail Server: mail.site.com
Olu?turdugun Mail Adresi ve ?ifren

G?r?ceksin zaten a??lan ekranda gerekli ayarlar? istersen Outlok ve benzeri programlar i?in gerekli kay?t defteri verisini indirebilirsin.

Please select an application:

Auto-Configure Microsoft Outlook 2000? for IMAP Access
Auto-Configure Microsoft Outlook 2000? for IMAP Access (SSL)
Auto-Configure Microsoft Outlook 2000? for POP3 Access
Auto-Configure Microsoft Outlook 2000? for POP3 Access (SSL)
Auto-Configure Microsoft? Outlook? Express? for IMAP Access
Auto-Configure Microsoft? Outlook? Express? for IMAP Access (SSL)
Auto-Configure Microsoft? Outlook? Express? for POP3 Access
Auto-Configure Microsoft? Outlook? Express? for POP3 Access (SSL)
Auto-Configure Mac? Mail.app? for IMAP Access
Auto-Configure Mac? Mail.app? for IMAP Access (SSL)
Author: huzuristan, Posted: 2011-08-17 03:54 GMT.
Hocam Anlatamad?m san?r?m :S

Bana ileti?im yani contactus eklentisinden mail gelmiyor.

Ben Smtp ?zerinden maillerimin gelmesini istiyorum. ?o?u scriptlerde smtp ayarlar?n? kolayl?kla yap?yorsunuz. Fakat seditio'da bu altyap? yok.

Smtp adresimi, kullan?c? ad?m? biliyorum, ?rne?in smf altyap?l? bir sitemde smtp ?zerinden maillerim geliyor.

Benim sorunum;

Hostum Php mail ?zelli?ini Spam sorunlar? y?z?nden engellemi?. Sadece smtp kullan?labiliyor.

Dolay?s?yla Ben ileti?im mod?l?nden mail alam?yorum, aktivasyon maili ve ?zel mesaj bildirimi gibi otomatik mailler de gelmiyor.

Doktor bana bir ?are =)
Author: Kaan, Posted: 2011-08-17 20:04 GMT. This post was edited by Kaan (2011-08-17 20:08 GMT, 5487 Gün ago)
Doktordan sana ?are var ama uzun zaman al?r san?r?m mail ?zelli?i kapal? hostmu olur allah a?k?na ya ne sa?mal?kt?r spam y?z?nden kapal?ym?? g?venli?inizi art?r?n ?ahsen ben olsam ?yle bir firma ile ?al??mam smtp kullanmak zorundam?y?m php'nin kendi ?zelli?i varken basit ?ekilde ben b?t?n sitelerimde php mail ?zelli?ini kullan?r?m.

son mesaj 3 dakika ?nce

Alternatif olarak hostun mail servisini hotmaile y?nlendir b?ylelikle sorunuda ??zm?? olursun diye d???n?yorum smtp ile ugra?madan.
domains.live.com adresinden giri? yaparak aktif edebilirsin hotmail hesab?n? diye d???n?yorum.
Ben T?m hostlar?m? hotmail'e y?nlendirdim en az?ndan kontrol panele gieye ugra?m?yorsun
Karar senin yinede nas?l istersen p ?ekilde yapabilirsin ama dedi?im gibi host firman? de?i?tir bence en iyi ??z?m
Author: huzuristan, Posted: 2011-08-18 22:23 GMT.
Reseller host i?in tavsiyeniz var m? =)
Author: Kaan, Posted: 2011-08-18 23:08 GMT.
isimtescil.net
natro.com
Author: huzuristan, Posted: 2011-08-19 00:19 GMT.
smf'de ve t?m scriptlerde smtp ayarlar? ?ok basit bir ?ekilde girilebiliyor.

Bu bence a??k bir ?ekilde seditio'nun bir eksi?i.

Bence kolay bir ??z?m? olmal? php mail se?ene?ini de?i?tirip SMTP mail kullanabilmenin...
Author: Kaan, Posted: 2011-08-19 00:46 GMT.
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.
Author: Kaan, Posted: 2011-08-21 01:52 GMT.
Postman eklentisi ile Smtp mail g?nderilebiliyor normalde ayarlar? yapt?ktan sonra bunu denediniz mi.?

Eklenti ?zelliklerinde de belirtilmi? zaten gerekli ayarlar docs klas?r?nde yaz?yor eklenti i?erisinde.

T3 PostMan is a complete pm/email suite for seditio framework.

?zellikler:
? Mass PM / Email Users.
? Number of messages to send at once.
? Advance criteria form based on users profiles.
? Include user information in messages (user id, name, email, activation link)
? Integrated PHPMailer 1.73
?- SMTP authentication (including SSL).
?- PHP SendMail
?- HTML emails.

Eklenti ayarlar?nda mail bilgilerini girmeniz yeterli oluyor yinede yollam?yorsa sizin host firman?zda sorun var demektir ben bu eklentiyi defalarca denedim smtp g?nderiyormu diye sorunsuz ?ekilde iletiliyordu mailler.
Author: JoeWega, Posted: 2013-02-01 18:49 GMT.
smtp ?art sditioda spam nedeni ile bir ?ok firma art?k phpmail ?zeli?ini kapat?yor konuyu da hortlatt?k
Author: Kaan, Posted: 2013-02-01 22:45 GMT.
Alıntı
#2767 Kaan :
T3 Postman Eklentisini Kurman gerekiyor Postman eklentisini kurdukdan sonra a?ag?daki ayarlar? yap?n?z..

Posrman eklentisini buradan indirebilirsiniz..
https://seditio.com.tr/eski1/page.php?id=154

system/functions.php A?ag?dakini bulun
:
hp]function sed_mail($fmail, $subject, $body, $headers='')

    {

    global $cfg;



    if(empty($fmail))

        {

        return(FALSE);

        }

    else

        {

        $headers = (empty($headers)) ? "From: \"".$cfg['maintitle']."\" <".$cfg['adminemail'].">\n"."Reply-To: <".$cfg['adminemail'].">\n"."Content-Type: text/plain; charset=".$cfg['charset']."\n" : $headers;

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

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

        sed_stat_inc('totalmailsent');

        return(TRUE);

        }

    }

Alttaki ile de?i?tiriniz.
:
hp]function sed_mail($fmail, $subject, $body, $headers='')

{

    global $cfg;

    if(empty($fmail)) return(FALSE);

    require("plugins/postman/inc/postoffice.class.php");

    $PostMan = new PostOffice();

    $PostMan->IsHTML(false);

    $PostMan->FromName = $cfg['maintitle'];

    $PostMan->Subject = $psoptions['subject'];

    $PostMan->AddAddress($fmail);

    $PostMan->Subject = $subject;

    $PostMan->Body = $body;

    $res['email'] = $PostMan->Send();  

    $res['error_info'] = $PostMan->ErrorInfo;

    $PostMan->ClearAddresses();  

    if($res['email'])

    {

        sed_stat_inc('totalmailsent');

        return(TRUE);  

    }

    else  

    {

        return(FALSE);

    }

Bu de?i?ikli?i yapt?kdan sonra sadece Smtp ?zerinden mail yollayabilirsiniz.


Seditio 160+ versionlar alttaki gibi yapmal?d?r. 160 dan eski versionlar ?steki gibi yapmal?d?r.
:
hp]function sed_mail($fmail, $subject, $body, $headers='')

{

    global $cfg;

    if(empty($fmail)) return(FALSE);

    require("system/core/admin/postmaninc/postoffice.class.php");

    $PostMan = new PostOffice();

    $PostMan->IsHTML(false);

    $PostMan->FromName = $cfg['maintitle'];

    $PostMan->Subject = $psoptions['subject'];

    $PostMan->AddAddress($fmail);

    $PostMan->Subject = $subject;

    $PostMan->Body = $body;

    $res['email'] = $PostMan->Send();  

    $res['error_info'] = $PostMan->ErrorInfo;

    $PostMan->ClearAddresses();  

    if($res['email'])

    {

        sed_stat_inc('totalmailsent');

        return(TRUE);  

    }

    else  

    {

        return(FALSE);

    }

Powered by SeditioPrint version