Interface Swift_Mime_Message

ExtendsSwift_Mime_MimeEntity
Implemented bySwift_Message, Swift_Mime_SimpleMessage, Swift_SignedMessage

A Message (RFC 2822) object.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
charsetChanged() Notify this observer that the entity's charset has changed. Swift_Mime_CharsetObserver
encoderChanged() Notify this observer that the observed entity's ContentEncoder has changed. Swift_Mime_EncodingObserver
generateId() Generates a valid Message-ID and switches to it. Swift_Mime_Message
getBcc() Get the Bcc addresses for this message. Swift_Mime_Message
getBody() Get the body content of this entity as a string. Swift_Mime_MimeEntity
getCc() Get the Cc addresses for this message. Swift_Mime_Message
getChildren() Get all children nested inside this entity. Swift_Mime_MimeEntity
getContentType() Get the qualified content-type of this mime entity. Swift_Mime_MimeEntity
getDate() Get the origination date of the message as a UNIX timestamp. Swift_Mime_Message
getFrom() Get the From address(es) of this message. Swift_Mime_Message
getHeaders() Get the collection of Headers in this Mime entity. Swift_Mime_MimeEntity
getId() Returns a unique ID for this entity. Swift_Mime_MimeEntity
getNestingLevel() Get the level at which this entity shall be nested in final document. Swift_Mime_MimeEntity
getReplyTo() Get the Reply-To addresses for this message. Swift_Mime_Message
getReturnPath() Get the return-path (bounce-detect) address. Swift_Mime_Message
getSender() Get the sender address for this message. Swift_Mime_Message
getSubject() Get the subject of the message. Swift_Mime_Message
getTo() Get the To addresses for this message. Swift_Mime_Message
setBcc() Set the Bcc address(es). Swift_Mime_Message
setBody() Set the body content of this entity as a string. Swift_Mime_MimeEntity
setCc() Set the Cc address(es). Swift_Mime_Message
setChildren() Set all children nested inside this entity. Swift_Mime_MimeEntity
setDate() Set the origination date of the message as a UNIX timestamp. Swift_Mime_Message
setFrom() Set the From address of this message. Swift_Mime_Message
setReplyTo() Set the Reply-To address(es). Swift_Mime_Message
setReturnPath() Set the return-path (bounce-detect) address. Swift_Mime_Message
setSender() Set the sender of this message. Swift_Mime_Message
setSubject() Set the subject of the message. Swift_Mime_Message
setTo() Set the To address(es). Swift_Mime_Message
toByteStream() Get this entire entity as a ByteStream. Swift_Mime_MimeEntity
toString() Get this entire entity in its string form. Swift_Mime_MimeEntity

Method Details

generateId() public abstract method

Generates a valid Message-ID and switches to it.

public abstract string generateId ( )
getBcc() public abstract method

Get the Bcc addresses for this message.

This method always returns an associative array, whereby the keys provide the actual email addresses.

public abstract string[] getBcc ( )
getCc() public abstract method

Get the Cc addresses for this message.

This method always returns an associative array, whereby the keys provide the actual email addresses.

public abstract string[] getCc ( )
getDate() public abstract method

Get the origination date of the message as a UNIX timestamp.

public abstract int getDate ( )
getFrom() public abstract method

Get the From address(es) of this message.

This method always returns an associative array where the keys are the addresses.

public abstract string[] getFrom ( )
getReplyTo() public abstract method

Get the Reply-To addresses for this message.

This method always returns an associative array where the keys provide the email addresses.

public abstract string[] getReplyTo ( )
getReturnPath() public abstract method

Get the return-path (bounce-detect) address.

public abstract string getReturnPath ( )
getSender() public abstract method

Get the sender address for this message.

This has a higher significance than the From address.

public abstract string getSender ( )
getSubject() public abstract method

Get the subject of the message.

public abstract string getSubject ( )
getTo() public abstract method

Get the To addresses for this message.

This method always returns an associative array, whereby the keys provide the actual email addresses.

public abstract string[] getTo ( )
setBcc() public abstract method

Set the Bcc address(es).

Recipients set in this field will receive a 'blind-carbon-copy' of this message.

In other words, they will get the message, but any other recipients of the message will have no such knowledge of their receipt of it.

This method has the same synopsis as {@link setFrom()} and {@link setTo()}.

public abstract void setBcc ( $addresses, $name null )
$addresses mixed
$name string

Optional

setCc() public abstract method

Set the Cc address(es).

Recipients set in this field will receive a 'carbon-copy' of this message.

This method has the same synopsis as {@link setFrom()} and {@link setTo()}.

public abstract void setCc ( $addresses, $name null )
$addresses mixed
$name string

Optional

setDate() public abstract method

Set the origination date of the message as a UNIX timestamp.

public abstract void setDate ( $date )
$date int
setFrom() public abstract method

Set the From address of this message.

It is permissible for multiple From addresses to be set using an array.

If multiple From addresses are used, you SHOULD set the Sender address and according to RFC 2822, MUST set the sender address.

An array can be used if display names are to be provided: i.e. array('email@address.com' => 'Real Name').

If the second parameter is provided and the first is a string, then $name is associated with the address.

public abstract void setFrom ( $addresses, $name null )
$addresses mixed
$name string

Optional

setReplyTo() public abstract method

Set the Reply-To address(es).

Any replies from the receiver will be sent to this address.

It is permissible for multiple reply-to addresses to be set using an array.

This method has the same synopsis as {@link setFrom()} and {@link setTo()}.

If the second parameter is provided and the first is a string, then $name is associated with the address.

public abstract void setReplyTo ( $addresses, $name null )
$addresses mixed
$name string

Optional

setReturnPath() public abstract method

Set the return-path (bounce-detect) address.

public abstract void setReturnPath ( $address )
$address string
setSender() public abstract method

Set the sender of this message.

If multiple addresses are present in the From field, this SHOULD be set.

According to RFC 2822 it is a requirement when there are multiple From addresses, but Swift itself does not require it directly.

An associative array (with one element!) can be used to provide a display- name: i.e. array('email@address' => 'Real Name').

If the second parameter is provided and the first is a string, then $name is associated with the address.

public abstract void setSender ( $address, $name null )
$address mixed
$name string

Optional

setSubject() public abstract method

Set the subject of the message.

public abstract void setSubject ( $subject )
$subject string
setTo() public abstract method

Set the To address(es).

Recipients set in this field will receive a copy of this message.

This method has the same synopsis as {@link setFrom()} and {@link setCc()}.

If the second parameter is provided and the first is a string, then $name is associated with the address.

public abstract void setTo ( $addresses, $name null )
$addresses mixed
$name string

Optional