PHP 클래스 Pagekit\Mail\Message

상속: extends Swift_Messag\Swift_Message, implements Pagekit\Mail\MessageInterface
파일 보기 프로젝트 열기: pagekit/pagekit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$mailer Pagekit\Mail\MailerInterface

공개 메소드들

메소드 설명
attachData ( string $data, string $name, string $mime = null ) : self Attaches in-memory data as an attachment.
attachFile ( string $file, string $name = null, string $mime = null ) : self Attaches a file to the message.
embedData ( string $data, string $name, string $contentType = null ) : string Embeds in-memory data in the message and get the CID.
embedFile ( string $file, string $cid = null ) : string Embeds a file in the message and get the CID.
getMailer ( )
queue ( &$errors = null )
send ( &$errors = null )
setMailer ( Pagekit\Mail\MailerInterface $mailer )

보호된 메소드들

메소드 설명
prepareAttachment ( Swift_Mime_Attachment $attachment, string $name = null, string $mime = null ) : self Prepare and attach the given attachment.

메소드 상세

attachData() 공개 메소드

Attaches in-memory data as an attachment.
public attachData ( string $data, string $name, string $mime = null ) : self
$data string
$name string
$mime string
리턴 self

attachFile() 공개 메소드

Attaches a file to the message.
public attachFile ( string $file, string $name = null, string $mime = null ) : self
$file string
$name string
$mime string
리턴 self

embedData() 공개 메소드

Embeds in-memory data in the message and get the CID.
public embedData ( string $data, string $name, string $contentType = null ) : string
$data string
$name string
$contentType string
리턴 string

embedFile() 공개 메소드

Embeds a file in the message and get the CID.
public embedFile ( string $file, string $cid = null ) : string
$file string
$cid string
리턴 string

getMailer() 공개 메소드

public getMailer ( )

prepareAttachment() 보호된 메소드

Prepare and attach the given attachment.
protected prepareAttachment ( Swift_Mime_Attachment $attachment, string $name = null, string $mime = null ) : self
$attachment Swift_Mime_Attachment
$name string
$mime string
리턴 self

queue() 공개 메소드

public queue ( &$errors = null )

send() 공개 메소드

public send ( &$errors = null )

setMailer() 공개 메소드

public setMailer ( Pagekit\Mail\MailerInterface $mailer )
$mailer Pagekit\Mail\MailerInterface

프로퍼티 상세

$mailer 보호되어 있는 프로퍼티

protected MailerInterface,Pagekit\Mail $mailer
리턴 Pagekit\Mail\MailerInterface