PHPMailer

OAuthTokenProvider

OAuthTokenProvider - OAuth2 token provider interface.

Provides base64 encoded OAuth2 auth strings for SMTP authentication.

Tags
see
OAuth
see
SMTP::authenticate()
author

Peter Scopes (pdscopes)

author

Marcus Bointon (Synchro/coolbru) phpmailer@synchromedia.co.uk

Table of Contents

Methods

getOauth64()  : string
Generate a base64-encoded OAuth token ensuring that the access token has not expired.

Methods

getOauth64()

Generate a base64-encoded OAuth token ensuring that the access token has not expired.

public getOauth64() : string

The string to be base 64 encoded should be in the form: "user=<user_email_address>\001auth=Bearer <access_token>\001\001"

Return values
string

        
On this page

Search results