Class Plain

Summary

Fully Qualified Name: Laminas\Mail\Protocol\Smtp\Auth\Plain
Extends: Smtp

Description

Performs PLAIN authentication

Methods

Name Description Defined By
__construct() Constructor. Plain
__destruct() Class destructor to cleanup open resources AbstractProtocol
auth() Perform PLAIN authentication with supplied credentials Plain
connect() Connect to the server with the parameters given in the constructor. Smtp
data() Issues DATA command Smtp
disconnect() Closes connection Smtp
getLog() Retrieve the transaction log AbstractProtocol
getMaximumLog() Get the maximum log size AbstractProtocol
getPassword() Get password Plain
getRequest() Retrieve the last client request AbstractProtocol
getResponse() Retrieve the last server response AbstractProtocol
getUsername() Get username Plain
hasSession() Returns the perceived session status Smtp
helo() Initiate HELO/EHLO sequence and set flag to indicate valid smtp session Smtp
mail() Issues MAIL command Smtp
noop() Issues the NOOP command end validates answer Smtp
quit() Issues the QUIT command and clears the current session Smtp
rcpt() Issues RCPT command Smtp
resetLog() Reset the transaction log AbstractProtocol
rset() Issues the RSET command end validates answer Smtp
setMaximumLog() Set the maximum log size AbstractProtocol
setPassword() Set value for password Plain
setUseCompleteQuit() Set whether or not send QUIT command Smtp
setUsername() Set value for username Plain
useCompleteQuit() Whether or not send QUIT command Smtp
vrfy() Issues the VRFY command end validates answer Smtp

Method Details

__construct()

Constructor.

Parameter Name Type Description
$host string (Default:
$port int (Default:
$config array Auth-specific

Returns:

__destruct()

Class destructor to cleanup open resources

Returns:

auth()

Perform PLAIN authentication with supplied credentials

Returns:

connect()

Connect to the server with the parameters given in the constructor.

Returns: bool

data()

Issues DATA command

Parameter Name Type Description
$data string

Returns:

disconnect()

Closes connection

Returns:

getLog()

Retrieve the transaction log

Returns: string

getMaximumLog()

Get the maximum log size

Returns: int the maximum log size

getPassword()

Get password

Returns: string

getRequest()

Retrieve the last client request

Returns: string

getResponse()

Retrieve the last server response

Returns: array

getUsername()

Get username

Returns: string

hasSession()

Returns the perceived session status

Returns: bool

helo()

Initiate HELO/EHLO sequence and set flag to indicate valid smtp session

Parameter Name Type Description
$host string The

Returns:

mail()

Issues MAIL command

Parameter Name Type Description
$from string Sender

Returns:

noop()

Issues the NOOP command end validates answer

Not used by Laminas\Mail, could be used to keep a connection alive or check if it is still open.

Returns:

quit()

Issues the QUIT command and clears the current session

Returns:

rcpt()

Issues RCPT command

Parameter Name Type Description
$to string Receiver(s)

Returns:

resetLog()

Reset the transaction log

Returns:

rset()

Issues the RSET command end validates answer

Can be used to restore a clean smtp communication state when a transaction has been cancelled or commencing a new transaction.

Returns:

setMaximumLog()

Set the maximum log size

Parameter Name Type Description
$maximumLog int Maximum

Returns:

setPassword()

Set value for password

Parameter Name Type Description
$password string

Returns: \Plain

setUseCompleteQuit()

Set whether or not send QUIT command

Parameter Name Type Description
$useCompleteQuit bool use

Returns: bool

setUsername()

Set value for username

Parameter Name Type Description
$username string

Returns: \Plain

useCompleteQuit()

Whether or not send QUIT command

Returns: bool

vrfy()

Issues the VRFY command end validates answer

Not used by Laminas\Mail.

Parameter Name Type Description
$user string User

Returns:

Top