Documentation

Swift_Transport_Esmtp_Authenticator

An Authentication mechanism.

Tags
author

Chris Corbyn

Table of Contents

authenticate()  : bool
Try to authenticate the user with $username and $password.
getAuthKeyword()  : string
Get the name of the AUTH mechanism this Authenticator handles.

Methods

authenticate()

Try to authenticate the user with $username and $password.

public authenticate(Swift_Transport_SmtpAgent $agent, string $username, string $password) : bool
Parameters
$agent : Swift_Transport_SmtpAgent
$username : string
$password : string
Tags
throws
Swift_TransportException

Allows the message to bubble up when authentication was not successful

Return values
bool

true if authentication worked (returning false is deprecated, throw a Swift_TransportException instead)

getAuthKeyword()

Get the name of the AUTH mechanism this Authenticator handles.

public getAuthKeyword() : string
Return values
string

Search results