Location: PHPKode > projects > l2jweb > functions/mail.intern.php
<?
function mail_activ($username, $email, $password, $link)
	{	
		global $smarty;
		$smarty->assign('username', $username);
		$smarty->assign('email', $email);
		$smarty->assign('password', $password);
		$smarty->assign('LINK', $link);
		$headers = 'From: '.EMAIL.''. "\r\n" .
					"Content-type: text/html; charset=iso-8859-1 "."\n".
					"X-AntiAbuse-IP: ".$_SERVER['REMOTE_ADDR']."\n".
    				'X-Mailer: PHP/' . phpversion();
		$mail_content = $smarty->fetch('mail_reg.tpl');
		return mail($email, 'l2Apollo account activation', $mail_content, $headers);
		//return send_mail($email, $mail_content, 'l2Apollo Account activation', EMAILADDR, 'l2Apollo Team', false);
	}
	
function mail_remember_passwd($email, $link)
	{
		global $smarty;
		$smarty->assign('email', $email);
		$smarty->assign('LINK', $link);
		$headers = 'From: '.EMAIL.'' . "\r\n" .
					"Content-type: text/html; charset=iso-8859-1 "."\n".
					"X-AntiAbuse-IP: ".$_SERVER['REMOTE_ADDR']."\n".
    				'X-Mailer: PHP/' . phpversion();
		$mail_content = $smarty->fetch('mail_forgot_passwd.tpl');
		return mail($email, 'l2Apollo new password', $mail_content, $headers);
	}
?>
Return current item: l2jweb