Jump to content
php.lv forumi

SMTP on e107


-=HELLBENDER=-

Recommended Posts

Varu pateigt tikai 2 lietas!!! Vinjs (e107) njemaas ar saviem smtp un neizmanto php.ini kaa ari atradu redigjeejamo vietu bet nezinu kur tieshi un kas kaa ari kaa jaraxta lai to smtp izmainiitu...

if($mailheader_e107id){
	$mail->AddCustomHeader("X-e107-id: {$mailheader_e107id}");
}

if ($pref['mailer']== 'smtp') {
	$mail->Mailer = "smtp";
 	$mail->SMTPKeepAlive = FALSE;
	$mail->Host = $pref['smtp_server'];
	if($pref['smtp_username'] && $pref['smtp_password']){
		$mail->SMTPAuth = TRUE;
		$mail->Username = $pref['smtp_username'];
		$mail->Password = $pref['smtp_password'];
		$mail->PluginDir = e_HANDLER."phpmailer/";
	}

} elseif ($pref['mailer']== 'sendmail'){
	$mail->Mailer = "sendmail";
	$mail->Sendmail = ($pref['sendmail']) ? $pref['sendmail'] : "/usr/sbin/sendmail -t -i -r ".$pref['siteadminemail'];
} else {
	$mail->Mailer = "mail";
}

$to_name = ($to_name) ? $to_name: $send_to;

$mail->CharSet = CHARSET;
$mail->From = ($send_from)? $send_from: $pref['siteadminemail'];
$mail->FromName = ($from_name)? $from_name:	$pref['siteadmin'];
$mail->Host = $pref['smtp_server'];
$mail->Subject = $subject;

Mans smtp username - nav :D

pass- nav :D

mysql username - root

pass- nav :D

smtp hosts- mail.ilva.lv

mans e-mail- lauris3722@inbox.lv

mosk juus redigjeejiet un ielieciet jau...

Link to comment
Share on other sites

Paldies!!!

ps. aks jaaraxta pie username un password ja taads man nav??? JO SMTP veeljoprojaam nejiet :@

Tagad iskataas shaadi

if ($pref['mailer']== 'smtp') {
	$mail->Mailer = "smtp";
	 $mail->SMTPKeepAlive = [b]FALSE[/b];
	$mail->Host = $pref['mail.ilva.lv'];
	if($pref['smtp_username'] && $pref['smtp_password']){
		$mail->SMTPAuth = TRUE;
		$mail->Username = $pref[''];
		$mail->Password = $pref[''];
		$mail->PluginDir = e_HANDLER."phpmailer/";

Kkas nepareizi?

Edited by -=HELLBENDER=-
Link to comment
Share on other sites

×
×
  • Create New...