74 $this->_authenticators = $authenticators;
92 $this->_username = $username;
110 $this->_password = $password;
128 $this->_auth_mode = $mode;
155 $this->_esmtpParams = $parameters;
164 if ($this->_username)
169 if (in_array(strtolower($authenticator->getAuthKeyword()),
170 array_map(
'strtolower', $this->_esmtpParams)))
173 if ($authenticator->authenticate($agent, $this->_username, $this->_password))
180 'Failed to authenticate on SMTP server with username "' .
181 $this->_username .
'" using ' . $count .
' possible authenticators'
206 $command, $codes = array(), &$failedRecipients = null, &$stop =
false)
227 return array(
'setUsername',
'getUsername',
'setPassword',
'getPassword',
'setAuthMode',
'getAuthMode');
247 if (!$mode = strtolower($this->_auth_mode))
252 foreach ($this->_authenticators as $authenticator)
254 if (strtolower($authenticator->getAuthKeyword()) == $mode)
256 return array($authenticator);