Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
preparedoauthcredentials.php
1
<?php
2
3
namespace
Bitrix\Main\Mail\Smtp
;
4
8
class
PreparedOauthCredentials
extends
\PHPMailer\PHPMailer\OAuth
9
{
15
public
function
__construct
(array $options)
16
{
17
parent::__construct($options);
18
$this->oauthToken = $options[
'token'
];
19
}
20
26
public
function
getOauth64
(): string
27
{
28
return
base64_encode(
29
'user='
.
30
$this->oauthUserEmail .
31
"\001auth=Bearer "
.
32
$this->oauthToken .
33
"\001\001"
34
);
35
}
36
}
Bitrix\Main\Mail\Smtp\PreparedOauthCredentials
Definition
preparedoauthcredentials.php:9
Bitrix\Main\Mail\Smtp\PreparedOauthCredentials\__construct
__construct(array $options)
Definition
preparedoauthcredentials.php:15
Bitrix\Main\Mail\Smtp\PreparedOauthCredentials\getOauth64
getOauth64()
Definition
preparedoauthcredentials.php:26
Bitrix\Main\Mail\Smtp
Definition
config.php:3
modules
main
lib
mail
smtp
preparedoauthcredentials.php
Создано системой
1.10.0