70 $this->_authenticators = $authenticators;
90 $this->_username = $username;
110 $this->_password = $password;
130 $this->_auth_mode = $mode;
160 $this->_esmtpParams = $parameters;
170 if ($this->_username) {
173 if (in_array(strtolower($authenticator->getAuthKeyword()),
174 array_map(
'strtolower', $this->_esmtpParams))) {
176 if ($authenticator->authenticate($agent, $this->_username, $this->_password)) {
182 'Failed to authenticate on SMTP server with username "'.
183 $this->_username.
'" using '.$count.
' possible authenticators'
232 return array(
'setUsername',
'getUsername',
'setPassword',
'getPassword',
'setAuthMode',
'getAuthMode');
251 if (!$mode = strtolower($this->_auth_mode)) {
255 foreach ($this->_authenticators as $authenticator) {
256 if (strtolower($authenticator->getAuthKeyword()) == $mode) {
257 return array($authenticator);