- fix notifications
- improves notifications
This commit is contained in:
@@ -5,13 +5,10 @@
|
||||
|
||||
function forum_lookup_user($iUserId)
|
||||
{
|
||||
$mailto = '';
|
||||
if ($iUserId > 0)
|
||||
{
|
||||
$sQuery = "SELECT email,realname FROM user_list WHERE userId = '".$iUserId."' LIMIT 1";
|
||||
$hResult = query_appdb($sQuery);
|
||||
$oUsr = mysql_fetch_object($hResult);
|
||||
$sMailto = '<a href="mailto:' . $oUsr->email . '">' . $oUsr->realname . '</a>';
|
||||
$oUser = new User($iUserId);
|
||||
$sMailto = '<a href="mailto:' . $oUser->sEmail . '">' . $oUser->sRealname . '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -6,13 +6,13 @@ function mail_appdb($sEmailList,$sSubject,$sMsg)
|
||||
$sHeaders .= "Reply-to: AppDB <".APPDB_OWNER_EMAIL.">\r\n";
|
||||
$sHeaders .= "X-Priority: 3\r\n";
|
||||
$sHeaders .= "X-Mailer: ".APPDB_OWNER." mailer\r\n";
|
||||
|
||||
$sMsg = $sSubject."\r\n---------------------------------------------\r\n".$sMsg;
|
||||
$sMsg .= "Best regards.\r\n";
|
||||
$sMsg .= "The AppDB team\r\n";
|
||||
$sMsg .= APPDB_OWNER_URL."\r\n";
|
||||
$sMsg .= "\r\n\r\nIf you don't want to receive any other e-mail, please change your preferences:\r\n";
|
||||
$sMsg .= APPDB_ROOT."preferences.php\r\n";
|
||||
$sMsg = trim(ereg_replace("\r\n","\n",$sMsg));
|
||||
$sMsg = $sSubject."\n-------------------------------------------------------\n".$sMsg."\n\n";
|
||||
$sMsg .= "Best regards.\n";
|
||||
$sMsg .= "The AppDB team\n";
|
||||
$sMsg .= APPDB_OWNER_URL."\n";
|
||||
$sMsg .= "\n\nIf you don't want to receive any other e-mail, please change your preferences:\n";
|
||||
$sMsg .= APPDB_ROOT."preferences.php\n";
|
||||
|
||||
$bResult = mail(str_replace(" ",",",$sEmailList), "[AppDB] ".$sSubject, $sMsg, $sHeaders, "-f".APPDB_OWNER_EMAIL);
|
||||
if($bResult)
|
||||
|
||||
Reference in New Issue
Block a user