- Timestamp:
- 04/12/10 16:21:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/993/inc/class.bo_agent_mail_smtp.inc.php
r2372 r2492 300 300 $data['smtpAuth'] = $profileData['smtpAuth']; 301 301 $data['smtpType'] = $profileData['smtpType']; 302 $useremail = $this->bo_emailadmin->getAccountEmailAddress( $GLOBALS['phpgw_info']['user']['userid'], $this->profileID);302 $useremail = $this->bo_emailadmin->getAccountEmailAddress(Settings::get('expresso', 'user', 'userid'), $this->profileID); 303 303 $data['emailAddress'] = $useremail[0]['address']; 304 304 return $data; … … 422 422 function prepare_mail() 423 423 { 424 $userLang = $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'];424 $userLang = Settings::get('expresso', 'preferences', 'lang'); 425 425 $langFile = PHPGW_SERVER_ROOT."/phpgwapi/setup/phpmailer.lang-$userLang.php"; 426 426 if(file_exists($langFile)) … … 448 448 { 449 449 $this->mail->SMTPAuth = true; 450 $this->mail->Username = $GLOBALS['phpgw_info']['user']['userid'];451 $this->mail->Password = $GLOBALS['phpgw_info']['user']['passwd'];450 $this->mail->Username = Settings::get('expresso', 'user', 'userid'); 451 $this->mail->Password = Settings::get('expresso', 'user', 'passwd'); 452 452 } 453 453 … … 668 668 //the current instance/activity user which is in fact running 669 669 //this class actually 670 $matches[1][$key] = $GLOBALS['phpgw_info']['user']['email'];670 $matches[1][$key] = Settings::get('expresso', 'user', 'email'); 671 671 break; 672 672 case 'owner' :
Note: See TracChangeset
for help on using the changeset viewer.