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);
}