Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
zendframework1
library
Zend
Mail
Protocol
Smtp
Auth
Plain.php
Go to the documentation of this file.
1
<?php
27
#require_once 'Zend/Mail/Protocol/Smtp.php';
28
29
39
class
Zend_Mail_Protocol_Smtp_Auth_Plain
extends
Zend_Mail_Protocol_Smtp
40
{
46
protected
$_username
;
47
48
54
protected
$_password
;
55
56
65
public
function
__construct
($host =
'127.0.0.1'
, $port =
null
,
$config
=
null
)
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
}
78
79
85
public
function
auth
()
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
}
96
}
Zend_Mail_Protocol_Smtp_Auth_Plain\auth
auth()
Definition:
Plain.php:85
Zend_Mail_Protocol_Abstract\_expect
_expect($code, $timeout=null)
Definition:
Abstract.php:402
Zend_Mail_Protocol_Smtp_Auth_Plain\$_password
$_password
Definition:
Plain.php:54
$config
$config
Definition:
fraud_order.php:17
Zend_Mail_Protocol_Smtp_Auth_Plain\$_username
$_username
Definition:
Plain.php:46
Zend_Mail_Protocol_Smtp_Auth_Plain
Definition:
Plain.php:39
Zend_Mail_Protocol_Smtp_Auth_Plain\__construct
__construct($host='127.0.0.1', $port=null, $config=null)
Definition:
Plain.php:65
Zend_Mail_Protocol_Smtp
Definition:
Smtp.php:48
Zend_Mail_Protocol_Abstract\_send
_send($request)
Definition:
Abstract.php:312