Index: trunk/kernel/include/emailmessage.php =================================================================== diff -u -r448 -r534 --- trunk/kernel/include/emailmessage.php (.../emailmessage.php) (revision 448) +++ trunk/kernel/include/emailmessage.php (.../emailmessage.php) (revision 534) @@ -157,7 +157,7 @@ { global $objUsers, $objEmailQueue,$objConfig; - $conn = GetADODBConnection(); + $conn = &GetADODBConnection(); //$this->recipient = $objUsers->GetUser($UserId); //$this->recipient->TagPrefix="touser"; if(strlen($EmailAddress)) @@ -206,7 +206,7 @@ { global $objUsers, $objEmailQueue, $objConfig; - $conn = GetADODBConnection(); + $conn = &GetADODBConnection(); //echo "Handling Event ".$this->Get("Event")." for user $UserId
\n"; $this->recipient = new clsPortalUser($UserId); // $objUsers->GetItem($UserId); //echo "
";print_r($this->recipient); echo "
"; @@ -265,7 +265,7 @@ { global $objUsers, $objConfig, $objEmailQueue; - $conn = GetADODBConnection(); + $conn = &GetADODBConnection(); $this->recipient = $objUsers->GetUser($this->Get("FromUserId")); $this->recipient->TagPrefix="touser"; @@ -691,7 +691,7 @@ $this->MessagesSent++; $time = time(); - $conn = GetADODBConnection(); + $conn = &GetADODBConnection(); /* $sql = "INSERT INTO ".GetTablePrefix()."EmailLog VALUES ('', '".htmlspecialchars($From)."', '".htmlspecialchars($To)."', '$Subject', $time, '')"; $conn->Execute($sql);*/ @@ -789,7 +789,7 @@ { global $objSession; - $ado = GetADODBConnection(); + $ado = &GetADODBConnection(); $To = mysql_escape_string($To); $From = mysql_escape_string($From); $Msg = mysql_escape_string($Msg); @@ -803,7 +803,7 @@ { global $objConfig, $objSession, $TotalMessagesSent; - $ado = GetADODBConnection(); + $ado = &GetADODBConnection(); $MaxAllowed = $this->MessagesAtOnce; $del_sql = array(); @@ -843,7 +843,7 @@ $headers = "From: $f\n"; $headers .= "MIME-Version: 1.0\n"; - $conn = GetADODBConnection(); + $conn = &GetADODBConnection(); $time = time(); $sendTo = $ToName;