PHP 클래스 Swift_Mime_SimpleMessage

저자: Chris Corbyn
상속: extends Swift_Mime_MimePart, implements Swift_Mime_Message
파일 보기 프로젝트 열기: swiftmailer/swiftmailer 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_IdGenerator $idGenerator, string $charset = null ) Create a new SimpleMessage with $headers, $encoder and $cache.
__toString ( ) : string Returns a string representation of this object.
addBcc ( string $address, string $name = null ) Add a Bcc: address to this message.
addBcc ( string $address, string $name = null ) : Swift_Mime_SimpleMessage Add a Bcc: address to this message.
addCc ( string $address, string $name = null ) Add a Cc: address to this message.
addCc ( string $address, string $name = null ) : Swift_Mime_SimpleMessage Add a Cc: address to this message.
addFrom ( string $address, string $name = null ) Add a From: address to this message.
addFrom ( string $address, string $name = null ) : Swift_Mime_SimpleMessage Add a From: address to this message.
addReplyTo ( string $address, string $name = null ) Add a Reply-To: address to this message.
addReplyTo ( string $address, string $name = null ) : Swift_Mime_SimpleMessage Add a Reply-To: address to this message.
addTo ( string $address, string $name = null ) Add a To: address to this message.
addTo ( string $address, string $name = null ) : Swift_Mime_SimpleMessage Add a To: address to this message.
attach ( Swift_Mime_MimeEntity $entity ) Attach a {@link Swift_Mime_MimeEntity} such as an Attachment or MimePart.
attach ( Swift_Mime_MimeEntity $entity ) : Swift_Mime_SimpleMessage Attach a {@link Swift_Mime_MimeEntity} such as an Attachment or MimePart.
detach ( Swift_Mime_MimeEntity $entity ) Remove an already attached entity.
detach ( Swift_Mime_MimeEntity $entity ) : Swift_Mime_SimpleMessage Remove an already attached entity.
embed ( Swift_Mime_MimeEntity $entity ) : string Attach a {@link Swift_Mime_MimeEntity} and return it's CID source.
getBcc ( ) : array Get the Bcc addresses of this message.
getCc ( ) : array Get the Cc address of this message.
getDate ( ) : DateTimeInterface Get the date at which this message was created.
getFrom ( ) : mixed Get the from address of this message.
getNestingLevel ( ) : integer Always returns {@link LEVEL_TOP} for a message instance.
getPriority ( ) : integer Get the priority of this message.
getReadReceiptTo ( ) : string Get the addresses to which a read-receipt will be sent.
getReplyTo ( ) : string Get the reply-to address of this message.
getReturnPath ( ) : string Get the return-path (bounce address) of this message.
getSender ( ) : string Get the sender of this message.
getSubject ( ) : string Get the subject of this message.
getTo ( ) : array Get the To addresses of this message.
setBcc ( mixed $addresses, string $name = null ) Set the Bcc addresses of this message.
setBcc ( mixed $addresses, string $name = null ) : Swift_Mime_SimpleMessage Set the Bcc addresses of this message.
setCc ( mixed $addresses, string $name = null ) Set the Cc addresses of this message.
setCc ( mixed $addresses, string $name = null ) : Swift_Mime_SimpleMessage Set the Cc addresses of this message.
setDate ( DateTimeInterface $dateTime ) Set the date at which this message was created.
setDate ( DateTimeInterface $dateTime ) : Swift_Mime_SimpleMessage Set the date at which this message was created.
setFrom ( string | array $addresses, string $name = null ) Set the from address of this message.
setFrom ( string | array $addresses, string $name = null ) : Swift_Mime_SimpleMessage Set the from address of this message.
setPriority ( integer $priority ) Set the priority of this message.
setPriority ( integer $priority ) : Swift_Mime_SimpleMessage Set the priority of this message.
setReadReceiptTo ( array $addresses ) Ask for a delivery receipt from the recipient to be sent to $addresses.
setReadReceiptTo ( array $addresses ) : Swift_Mime_SimpleMessage Ask for a delivery receipt from the recipient to be sent to $addresses.
setReplyTo ( mixed $addresses, string $name = null ) Set the reply-to address of this message.
setReplyTo ( mixed $addresses, string $name = null ) : Swift_Mime_SimpleMessage Set the reply-to address of this message.
setReturnPath ( string $address ) Set the return-path (the bounce address) of this message.
setReturnPath ( string $address ) : Swift_Mime_SimpleMessage Set the return-path (the bounce address) of this message.
setSender ( string $address, string $name = null ) Set the sender of this message.
setSender ( string $address, string $name = null ) : Swift_Mime_SimpleMessage Set the sender of this message.
setSubject ( string $subject ) Set the subject of this message.
setSubject ( string $subject ) : Swift_Mime_SimpleMessage Set the subject of this message.
setTo ( mixed $addresses, string $name = null ) Set the to addresses of this message.
setTo ( mixed $addresses, string $name = null ) : Swift_Mime_SimpleMessage Set the to addresses of this message.
toByteStream ( Swift_InputByteStream $is ) Write this message to a {@link Swift_InputByteStream}.
toString ( ) : string Get this message as a complete string.

보호된 메소드들

메소드 설명
becomeMimePart ( ) Turn the body of this message into a child of itself if needed
getIdField ( )

비공개 메소드들

메소드 설명
getTopNestingLevel ( ) Get the highest nesting level nested inside this message

메소드 상세

__construct() 공개 메소드

Create a new SimpleMessage with $headers, $encoder and $cache.
public __construct ( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_IdGenerator $idGenerator, string $charset = null )
$headers Swift_Mime_HeaderSet
$encoder Swift_Mime_ContentEncoder
$cache Swift_KeyCache
$idGenerator Swift_IdGenerator
$charset string

__toString() 공개 메소드

Returns a string representation of this object.
또한 보기: toString()
public __toString ( ) : string
리턴 string

addBcc() 공개 메소드

If $name is passed this name will be associated with the address.
public addBcc ( string $address, string $name = null )
$address string
$name string optional

addBcc() 공개 메소드

If $name is passed this name will be associated with the address.
public addBcc ( string $address, string $name = null ) : Swift_Mime_SimpleMessage
$address string
$name string optional
리턴 Swift_Mime_SimpleMessage

addCc() 공개 메소드

If $name is passed this name will be associated with the address.
public addCc ( string $address, string $name = null )
$address string
$name string optional

addCc() 공개 메소드

If $name is passed this name will be associated with the address.
public addCc ( string $address, string $name = null ) : Swift_Mime_SimpleMessage
$address string
$name string optional
리턴 Swift_Mime_SimpleMessage

addFrom() 공개 메소드

If $name is passed this name will be associated with the address.
public addFrom ( string $address, string $name = null )
$address string
$name string optional

addFrom() 공개 메소드

If $name is passed this name will be associated with the address.
public addFrom ( string $address, string $name = null ) : Swift_Mime_SimpleMessage
$address string
$name string optional
리턴 Swift_Mime_SimpleMessage

addReplyTo() 공개 메소드

If $name is passed this name will be associated with the address.
public addReplyTo ( string $address, string $name = null )
$address string
$name string optional

addReplyTo() 공개 메소드

If $name is passed this name will be associated with the address.
public addReplyTo ( string $address, string $name = null ) : Swift_Mime_SimpleMessage
$address string
$name string optional
리턴 Swift_Mime_SimpleMessage

addTo() 공개 메소드

If $name is passed this name will be associated with the address.
public addTo ( string $address, string $name = null )
$address string
$name string optional

addTo() 공개 메소드

If $name is passed this name will be associated with the address.
public addTo ( string $address, string $name = null ) : Swift_Mime_SimpleMessage
$address string
$name string optional
리턴 Swift_Mime_SimpleMessage

attach() 공개 메소드

Attach a {@link Swift_Mime_MimeEntity} such as an Attachment or MimePart.
public attach ( Swift_Mime_MimeEntity $entity )
$entity Swift_Mime_MimeEntity

attach() 공개 메소드

Attach a {@link Swift_Mime_MimeEntity} such as an Attachment or MimePart.
public attach ( Swift_Mime_MimeEntity $entity ) : Swift_Mime_SimpleMessage
$entity Swift_Mime_MimeEntity
리턴 Swift_Mime_SimpleMessage

becomeMimePart() 보호된 메소드

Turn the body of this message into a child of itself if needed
protected becomeMimePart ( )

detach() 공개 메소드

Remove an already attached entity.
public detach ( Swift_Mime_MimeEntity $entity )
$entity Swift_Mime_MimeEntity

detach() 공개 메소드

Remove an already attached entity.
public detach ( Swift_Mime_MimeEntity $entity ) : Swift_Mime_SimpleMessage
$entity Swift_Mime_MimeEntity
리턴 Swift_Mime_SimpleMessage

embed() 공개 메소드

This method should be used when embedding images or other data in a message.
public embed ( Swift_Mime_MimeEntity $entity ) : string
$entity Swift_Mime_MimeEntity
리턴 string

getBcc() 공개 메소드

Get the Bcc addresses of this message.
public getBcc ( ) : array
리턴 array

getCc() 공개 메소드

Get the Cc address of this message.
public getCc ( ) : array
리턴 array

getDate() 공개 메소드

Get the date at which this message was created.
public getDate ( ) : DateTimeInterface
리턴 DateTimeInterface

getFrom() 공개 메소드

Get the from address of this message.
public getFrom ( ) : mixed
리턴 mixed

getIdField() 보호된 메소드

또한 보기: Swift_Mime_SimpleMimeEntity::getIdField()
protected getIdField ( )

getNestingLevel() 공개 메소드

Always returns {@link LEVEL_TOP} for a message instance.
public getNestingLevel ( ) : integer
리턴 integer

getPriority() 공개 메소드

The returned value is an integer where 1 is the highest priority and 5 is the lowest.
public getPriority ( ) : integer
리턴 integer

getReadReceiptTo() 공개 메소드

Get the addresses to which a read-receipt will be sent.
public getReadReceiptTo ( ) : string
리턴 string

getReplyTo() 공개 메소드

Get the reply-to address of this message.
public getReplyTo ( ) : string
리턴 string

getReturnPath() 공개 메소드

Get the return-path (bounce address) of this message.
public getReturnPath ( ) : string
리턴 string

getSender() 공개 메소드

Get the sender of this message.
public getSender ( ) : string
리턴 string

getSubject() 공개 메소드

Get the subject of this message.
public getSubject ( ) : string
리턴 string

getTo() 공개 메소드

Get the To addresses of this message.
public getTo ( ) : array
리턴 array

setBcc() 공개 메소드

If $name is passed and the first parameter is a string, this name will be associated with the address.
public setBcc ( mixed $addresses, string $name = null )
$addresses mixed
$name string optional

setBcc() 공개 메소드

If $name is passed and the first parameter is a string, this name will be associated with the address.
public setBcc ( mixed $addresses, string $name = null ) : Swift_Mime_SimpleMessage
$addresses mixed
$name string optional
리턴 Swift_Mime_SimpleMessage

setCc() 공개 메소드

If $name is passed and the first parameter is a string, this name will be associated with the address.
public setCc ( mixed $addresses, string $name = null )
$addresses mixed
$name string optional

setCc() 공개 메소드

If $name is passed and the first parameter is a string, this name will be associated with the address.
public setCc ( mixed $addresses, string $name = null ) : Swift_Mime_SimpleMessage
$addresses mixed
$name string optional
리턴 Swift_Mime_SimpleMessage

setDate() 공개 메소드

Set the date at which this message was created.
public setDate ( DateTimeInterface $dateTime )
$dateTime DateTimeInterface

setDate() 공개 메소드

Set the date at which this message was created.
public setDate ( DateTimeInterface $dateTime ) : Swift_Mime_SimpleMessage
$dateTime DateTimeInterface
리턴 Swift_Mime_SimpleMessage

setFrom() 공개 메소드

You may pass an array of addresses if this message is from multiple people. If $name is passed and the first parameter is a string, this name will be associated with the address.
public setFrom ( string | array $addresses, string $name = null )
$addresses string | array
$name string optional

setFrom() 공개 메소드

You may pass an array of addresses if this message is from multiple people. If $name is passed and the first parameter is a string, this name will be associated with the address.
public setFrom ( string | array $addresses, string $name = null ) : Swift_Mime_SimpleMessage
$addresses string | array
$name string optional
리턴 Swift_Mime_SimpleMessage

setPriority() 공개 메소드

The value is an integer where 1 is the highest priority and 5 is the lowest.
public setPriority ( integer $priority )
$priority integer

setPriority() 공개 메소드

The value is an integer where 1 is the highest priority and 5 is the lowest.
public setPriority ( integer $priority ) : Swift_Mime_SimpleMessage
$priority integer
리턴 Swift_Mime_SimpleMessage

setReadReceiptTo() 공개 메소드

Ask for a delivery receipt from the recipient to be sent to $addresses.
public setReadReceiptTo ( array $addresses )
$addresses array

setReadReceiptTo() 공개 메소드

Ask for a delivery receipt from the recipient to be sent to $addresses.
public setReadReceiptTo ( array $addresses ) : Swift_Mime_SimpleMessage
$addresses array
리턴 Swift_Mime_SimpleMessage

setReplyTo() 공개 메소드

You may pass an array of addresses if replies will go to multiple people. If $name is passed and the first parameter is a string, this name will be associated with the address.
public setReplyTo ( mixed $addresses, string $name = null )
$addresses mixed
$name string optional

setReplyTo() 공개 메소드

You may pass an array of addresses if replies will go to multiple people. If $name is passed and the first parameter is a string, this name will be associated with the address.
public setReplyTo ( mixed $addresses, string $name = null ) : Swift_Mime_SimpleMessage
$addresses mixed
$name string optional
리턴 Swift_Mime_SimpleMessage

setReturnPath() 공개 메소드

Set the return-path (the bounce address) of this message.
public setReturnPath ( string $address )
$address string

setReturnPath() 공개 메소드

Set the return-path (the bounce address) of this message.
public setReturnPath ( string $address ) : Swift_Mime_SimpleMessage
$address string
리턴 Swift_Mime_SimpleMessage

setSender() 공개 메소드

This does not override the From field, but it has a higher significance.
public setSender ( string $address, string $name = null )
$address string
$name string optional

setSender() 공개 메소드

This does not override the From field, but it has a higher significance.
public setSender ( string $address, string $name = null ) : Swift_Mime_SimpleMessage
$address string
$name string optional
리턴 Swift_Mime_SimpleMessage

setSubject() 공개 메소드

Set the subject of this message.
public setSubject ( string $subject )
$subject string

setSubject() 공개 메소드

Set the subject of this message.
public setSubject ( string $subject ) : Swift_Mime_SimpleMessage
$subject string
리턴 Swift_Mime_SimpleMessage

setTo() 공개 메소드

If multiple recipients will receive the message an array should be used. Example: array('[email protected]', '[email protected]' => 'A name') If $name is passed and the first parameter is a string, this name will be associated with the address.
public setTo ( mixed $addresses, string $name = null )
$addresses mixed
$name string optional

setTo() 공개 메소드

If multiple recipients will receive the message an array should be used. Example: array('[email protected]', '[email protected]' => 'A name') If $name is passed and the first parameter is a string, this name will be associated with the address.
public setTo ( mixed $addresses, string $name = null ) : Swift_Mime_SimpleMessage
$addresses mixed
$name string optional
리턴 Swift_Mime_SimpleMessage

toByteStream() 공개 메소드

Write this message to a {@link Swift_InputByteStream}.
public toByteStream ( Swift_InputByteStream $is )
$is Swift_InputByteStream

toString() 공개 메소드

Get this message as a complete string.
public toString ( ) : string
리턴 string