Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__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 () | |
![]() | |
__construct ($host='127.0.0.1', $port=null) | |
__destruct () | |
setMaximumLog ($maximumLog) | |
getMaximumLog () | |
connect () | |
getRequest () | |
getResponse () | |
getLog () | |
resetLog () | |
Protected Member Functions | |
_ehlo ($host) | |
_startSession () | |
_stopSession () | |
![]() | |
_addLog ($value) | |
_connect ($remote) | |
_disconnect () | |
_send ($request) | |
_receive ($timeout=null) | |
_expect ($code, $timeout=null) | |
_setStreamTimeout ($timeout) | |
Protected Attributes | |
$_transport = 'tcp' | |
$_secure | |
$_sess = false | |
$_helo = false | |
$_auth = false | |
$_mail = false | |
$_rcpt = false | |
$_data = null | |
![]() | |
$_maximumLog = 64 | |
$_host | |
$_port | |
$_validHost | |
$_socket | |
$_request | |
$_response | |
$_template = '%d%s' | |
Additional Inherited Members | |
![]() | |
const | EOL = "\r\n" |
const | TIMEOUT_CONNECTION = 30 |
__construct | ( | $host = '127.0.0.1' , |
|
$port = null , |
|||
array | $config = array() |
||
) |
Constructor.
string | $host | |
integer | $port | |
array | $config |
Zend_Mail_Protocol_Exception |
Definition at line 123 of file Smtp.php.
|
protected |
Send EHLO or HELO depending on capabilities of smtp host
string | $host | The client hostname or IP address (default: 127.0.0.1) |
Zend_Mail_Protocol_Exception |
Definition at line 229 of file Smtp.php.
|
protected |
|
protected |
auth | ( | ) |
Default authentication method
This default method is implemented by AUTH adapters to properly authenticate to a remote host.
Zend_Mail_Protocol_Exception |
Definition at line 401 of file Smtp.php.
connect | ( | ) |
data | ( | $data | ) |
Issues DATA command
string | $data |
Zend_Mail_Protocol_Exception |
Definition at line 302 of file Smtp.php.
helo | ( | $host = '127.0.0.1' | ) |
Initiate HELO/EHLO sequence and set flag to indicate valid smtp session
string | $host | The client hostname or IP address (default: 127.0.0.1) |
Zend_Mail_Protocol_Exception |
Definition at line 178 of file Smtp.php.
( | $from | ) |
Issues MAIL command
string | $from | Sender mailbox |
Zend_Mail_Protocol_Exception |
Definition at line 251 of file Smtp.php.
noop | ( | ) |
quit | ( | ) |
rcpt | ( | $to | ) |
Issues RCPT command
string | $to | Receiver(s) mailbox |
Zend_Mail_Protocol_Exception |
Definition at line 278 of file Smtp.php.
rset | ( | ) |
vrfy | ( | $user | ) |