PHP 클래스 Swift_Mailer, Halite

저자: Chris Corbyn
파일 보기 프로젝트 열기: HaliteChallenge/Halite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Swift_Transport $transport ) Create a new Mailer using $transport for delivery.
createMessage ( string $service = 'message' ) : object Create a new class instance of one of the message services.
getTransport ( ) : Swift_Transport The Transport used to send messages.
newInstance ( Swift_Transport $transport ) : Swift_Mailer Create a new Mailer instance.
registerPlugin ( Swift_Events_EventListener $plugin ) Register a plugin using a known unique key (e.g. myPlugin).
send ( Swift_Mime_Message $message, array &$failedRecipients = null ) : integer Send the given Message like it would be sent in a mail client.

메소드 상세

__construct() 공개 메소드

Create a new Mailer using $transport for delivery.
public __construct ( Swift_Transport $transport )
$transport Swift_Transport

createMessage() 공개 메소드

For example 'mimepart' would create a 'message.mimepart' instance
public createMessage ( string $service = 'message' ) : object
$service string
리턴 object

getTransport() 공개 메소드

The Transport used to send messages.
public getTransport ( ) : Swift_Transport
리턴 Swift_Transport

newInstance() 공개 정적인 메소드

Create a new Mailer instance.
public static newInstance ( Swift_Transport $transport ) : Swift_Mailer
$transport Swift_Transport
리턴 Swift_Mailer

registerPlugin() 공개 메소드

Register a plugin using a known unique key (e.g. myPlugin).
public registerPlugin ( Swift_Events_EventListener $plugin )
$plugin Swift_Events_EventListener

send() 공개 메소드

All recipients (with the exception of Bcc) will be able to see the other recipients this message was sent to. Recipient/sender data will be retrieved from the Message object. The return value is the number of recipients who were accepted for delivery.
public send ( Swift_Mime_Message $message, array &$failedRecipients = null ) : integer
$message Swift_Mime_Message
$failedRecipients array An array of failures by-reference
리턴 integer The number of successful recipients. Can be 0 which indicates failure