mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-21 12:51:21 +01:00
not all smtp plugins are autoloadable eg. postifxldap (qmailUser)
This commit is contained in:
parent
391317c5c6
commit
9ca2f15c2b
@ -394,6 +394,11 @@ class emailadmin_account implements ArrayAccess
|
|||||||
{
|
{
|
||||||
$class = $params['acc_smtp_type'];
|
$class = $params['acc_smtp_type'];
|
||||||
if ($class=='defaultsmtp') $class='emailadmin_smtp';
|
if ($class=='defaultsmtp') $class='emailadmin_smtp';
|
||||||
|
// not all smtp plugins are autoloadable eg. postifxldap (qmailUser)
|
||||||
|
if (!class_exists($class) && file_exists($file=EGW_INCLUDE_ROOT.'/emailadmin/inc/class.'.$class.'.inc.php'))
|
||||||
|
{
|
||||||
|
require_once($file);
|
||||||
|
}
|
||||||
$smtp = new $class($params);
|
$smtp = new $class($params);
|
||||||
$smtp->editForwardingAddress = false;
|
$smtp->editForwardingAddress = false;
|
||||||
$smtp->host = $params['acc_smtp_host'];
|
$smtp->host = $params['acc_smtp_host'];
|
||||||
|
Loading…
Reference in New Issue
Block a user