Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Zend_Mail_Protocol_Smtp_Auth_Plain Class Reference
Inheritance diagram for Zend_Mail_Protocol_Smtp_Auth_Plain:
Zend_Mail_Protocol_Smtp Zend_Mail_Protocol_Abstract

Public Member Functions

 __construct ($host='127.0.0.1', $port=null, $config=null)
 
 auth ()
 
- Public Member Functions inherited from Zend_Mail_Protocol_Smtp
 __construct ($host='127.0.0.1', $port=null, array $config=array())
 
 connect ()
 
 helo ($host='127.0.0.1')
 
 mail ($from)
 
 rcpt ($to)
 
 data ($data)
 
 rset ()
 
 noop ()
 
 vrfy ($user)
 
 quit ()
 
 auth ()
 
 disconnect ()
 
- Public Member Functions inherited from Zend_Mail_Protocol_Abstract
 __construct ($host='127.0.0.1', $port=null)
 
 __destruct ()
 
 setMaximumLog ($maximumLog)
 
 getMaximumLog ()
 
 connect ()
 
 getRequest ()
 
 getResponse ()
 
 getLog ()
 
 resetLog ()
 

Protected Attributes

 $_username
 
 $_password
 
- Protected Attributes inherited from Zend_Mail_Protocol_Smtp
 $_transport = 'tcp'
 
 $_secure
 
 $_sess = false
 
 $_helo = false
 
 $_auth = false
 
 $_mail = false
 
 $_rcpt = false
 
 $_data = null
 
- Protected Attributes inherited from Zend_Mail_Protocol_Abstract
 $_maximumLog = 64
 
 $_host
 
 $_port
 
 $_validHost
 
 $_socket
 
 $_request
 
 $_response
 
 $_template = '%d%s'
 

Additional Inherited Members

- Data Fields inherited from Zend_Mail_Protocol_Abstract
const EOL = "\r\n"
 
const TIMEOUT_CONNECTION = 30
 
- Protected Member Functions inherited from Zend_Mail_Protocol_Smtp
 _ehlo ($host)
 
 _startSession ()
 
 _stopSession ()
 
- Protected Member Functions inherited from Zend_Mail_Protocol_Abstract
 _addLog ($value)
 
 _connect ($remote)
 
 _disconnect ()
 
 _send ($request)
 
 _receive ($timeout=null)
 
 _expect ($code, $timeout=null)
 
 _setStreamTimeout ($timeout)
 

Detailed Description

Definition at line 39 of file Plain.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $host = '127.0.0.1',
  $port = null,
  $config = null 
)

Constructor.

Parameters
string$host(Default: 127.0.0.1)
int$port(Default: null)
array$configAuth-specific parameters
Returns
void

Definition at line 65 of file Plain.php.

66  {
67  if (is_array($config)) {
68  if (isset($config['username'])) {
69  $this->_username = $config['username'];
70  }
71  if (isset($config['password'])) {
72  $this->_password = $config['password'];
73  }
74  }
75 
76  parent::__construct($host, $port, $config);
77  }
$config
Definition: fraud_order.php:17

Member Function Documentation

◆ auth()

auth ( )

Perform PLAIN authentication with supplied credentials

Returns
void

Definition at line 85 of file Plain.php.

86  {
87  // Ensure AUTH has not already been initiated.
88  parent::auth();
89 
90  $this->_send('AUTH PLAIN');
91  $this->_expect(334);
92  $this->_send(base64_encode("\0" . $this->_username . "\0" . $this->_password));
93  $this->_expect(235);
94  $this->_auth = true;
95  }
_expect($code, $timeout=null)
Definition: Abstract.php:402

Field Documentation

◆ $_password

$_password
protected

Definition at line 54 of file Plain.php.

◆ $_username

$_username
protected

Definition at line 46 of file Plain.php.


The documentation for this class was generated from the following file: