mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
use notifications option/configuration to enforce the use of emailadminprofiles only for notifications
This commit is contained in:
parent
f67a9e4a56
commit
f71cd37af6
@ -56,11 +56,15 @@
|
||||
}
|
||||
$this->SetLanguage($lang,$lang_path);
|
||||
$this->IsSmtp();
|
||||
|
||||
$bopreferences =& CreateObject('felamimail.bopreferences');
|
||||
$restoreSession = $getUserDefinedProfiles = true;
|
||||
// if dontUseUserDefinedProfiles is set to yes/true/1 dont restore the session AND dont retrieve UserdefinedAccount settings
|
||||
$notification_config = config::read('notifications');
|
||||
if ($notification_config['dontUseUserDefinedProfiles']) $restoreSession = $getUserDefinedProfiles = false;
|
||||
$bopreferences =& CreateObject('felamimail.bopreferences',$restoreSession);
|
||||
if ($bopreferences) {
|
||||
if ($this->debug) error_log(__METHOD__." using felamimail preferences for mailing.");
|
||||
$preferences = $bopreferences->getPreferences();
|
||||
// if dontUseUserDefinedProfiles is set to yes/true/1 dont retrieve UserdefinedAccount settings
|
||||
$preferences = $bopreferences->getPreferences($getUserDefinedProfiles);
|
||||
if ($preferences) {
|
||||
$ogServer = $preferences->getOutgoingServer(0);
|
||||
if ($ogServer) {
|
||||
|
Loading…
Reference in New Issue
Block a user