![]() |
TYPO3
7.6
|
Public Member Functions | |
getAuthKeyword () | |
authenticate (Swift_Transport_SmtpAgent $agent, $email, $token) | |
Protected Member Functions | |
constructXOAuth2Params ($email, $token) | |
Handles XOAUTH2 authentication.
Example: $transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 587, 'tls') ->setAuthMode('XOAUTH2') ->setUsername('YOUR_EMAIL_ADDRESS') ->setPassword('YOUR_ACCESS_TOKEN');
Definition at line 26 of file XOAuth2Authenticator.php.
authenticate | ( | Swift_Transport_SmtpAgent | $agent, |
$email, | |||
$token | |||
) |
Try to authenticate the user with $email and $token.
Swift_Transport_SmtpAgent | $agent | |
string | ||
string | $token |
Implements Swift_Transport_Esmtp_Authenticator.
Definition at line 47 of file XOAuth2Authenticator.php.
References constructXOAuth2Params(), and Swift_Transport_SmtpAgent\executeCommand().
|
protected |
Construct the auth parameter.
Definition at line 66 of file XOAuth2Authenticator.php.
Referenced by authenticate().
getAuthKeyword | ( | ) |
Get the name of the AUTH mechanism this Authenticator handles.
Implements Swift_Transport_Esmtp_Authenticator.
Definition at line 33 of file XOAuth2Authenticator.php.