PHP 클래스 Swift_Transport_SendmailTransport, Halite

.) binary. Supported modes are -bs and -t, with any additional flags desired. It is advised to use -bs mode since error reporting with -t mode is not possible.
저자: Chris Corbyn
상속: extends Swift_Transport_AbstractSmtpTransport
파일 보기 프로젝트 열기: HaliteChallenge/Halite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher ) Create a new SendmailTransport with $buf for I/O.
getCommand ( ) : string Get the sendmail command which will be invoked.
send ( Swift_Mime_Message $message, string[] &$failedRecipients = null ) : integer Send the given Message.
setCommand ( string $command ) : Swift_Transport_SendmailTransport Set the command to invoke.
start ( ) Start the standalone SMTP session if running in -bs mode.

보호된 메소드들

메소드 설명
_getBufferParams ( ) Get the params to initialize the buffer

메소드 상세

__construct() 공개 메소드

Create a new SendmailTransport with $buf for I/O.
public __construct ( Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher )
$buf Swift_Transport_IoBuffer
$dispatcher Swift_Events_EventDispatcher

_getBufferParams() 보호된 메소드

Get the params to initialize the buffer
protected _getBufferParams ( )

getCommand() 공개 메소드

Get the sendmail command which will be invoked.
public getCommand ( ) : string
리턴 string

send() 공개 메소드

Recipient/sender data will be retrieved from the Message API. The return value is the number of recipients who were accepted for delivery. NOTE: If using 'sendmail -t' you will not be aware of any failures until they bounce (i.e. send() will always return 100% success).
public send ( Swift_Mime_Message $message, string[] &$failedRecipients = null ) : integer
$message Swift_Mime_Message
$failedRecipients string[] An array of failures by-reference
리턴 integer

setCommand() 공개 메소드

If using -t mode you are strongly advised to include -oi or -i in the flags. For example: /usr/sbin/sendmail -oi -t Swift will append a -f flag if one is not present. The recommended mode is "-bs" since it is interactive and failure notifications are hence possible.
public setCommand ( string $command ) : Swift_Transport_SendmailTransport
$command string
리턴 Swift_Transport_SendmailTransport

start() 공개 메소드

Start the standalone SMTP session if running in -bs mode.
public start ( )