An ESMTP handler.

package Swift
subpackage Transport
author Chris Corbyn

 Methods

Runs immediately after a EHLO has been issued.

afterEhlo(\Swift_Transport_SmtpAgent $agent) 

Parameters

$agent

\Swift_Transport_SmtpAgent

to read/write

Returns an array of method names which are exposed to the Esmtp class.

exposeMixinMethods() : string[]

Returns

string[]

Get the name of the ESMTP extension this handles.

getHandledKeyword() : boolean

Returns

boolean

Get params which are appended to MAIL FROM:<>.

getMailParams() : string[]

Returns

string[]

Returns +1, -1 or 0 according to the rules for usort().

getPriorityOver(string $esmtpKeyword) : int

This method is called to ensure extensions can be execute in an appropriate order.

Parameters

$esmtpKeyword

string

to compare with

Returns

int

Get params which are appended to RCPT TO:<>.

getRcptParams() : string[]

Returns

string[]

Runs when a command is due to be sent.

onCommand(\Swift_Transport_SmtpAgent $agent, string $command, int[] $codes, string[] $failedRecipients, boolean $stop) 

Parameters

$agent

\Swift_Transport_SmtpAgent

to read/write

$command

string

to send

$codes

int[]

expected in response

$failedRecipients

string[]

&$failedRecipients

$stop

boolean

&$stop to be set true if the command is now sent

Tells this handler to clear any buffers and reset its state.

resetState() 

Set the parameters which the EHLO greeting indicated.

setKeywordParams(array $parameters) 

Parameters

$parameters

string[]