Swift
[ class tree: Swift ] [ index: Swift ] [ all elements ]

Class: Swift_Mime_SimpleMessage

Source Location: /vendors/swift/classes/Swift/Mime/SimpleMessage.php

Class Overview

Swift_Mime_SimpleMimeEntity
   |
   --Swift_Mime_MimePart
      |
      --Swift_Mime_SimpleMessage

The default email message class.


Author(s):

  • Chris Corbyn

Implements interfaces:

Methods


Child classes:

Swift_Message
The Message class for building emails.

Inherited Variables

Inherited Methods

Class: Swift_Mime_MimePart

Swift_Mime_MimePart::__construct()
Create a new MimePart with $headers, $encoder and $cache.
Swift_Mime_MimePart::charsetChanged()
Receive notification that the charset has changed on this document, or a parent document.
Swift_Mime_MimePart::getCharset()
Get the character set of this entity.
Swift_Mime_MimePart::getDelSp()
Test if delsp is being used for this entity.
Swift_Mime_MimePart::getFormat()
Get the format of this entity (i.e. flowed or fixed).
Swift_Mime_MimePart::getNestingLevel()
Get the nesting level of this entity.
Swift_Mime_MimePart::setBody()
Set the body of this entity, either as a string, or as an instance of Swift_OutputByteStream.
Swift_Mime_MimePart::setCharset()
Set the character set of this entity.
Swift_Mime_MimePart::setDelSp()
Turn delsp on or off for this entity.
Swift_Mime_MimePart::setFormat()
Set the format of this entity (flowed or fixed).
Swift_Mime_MimePart::_fixHeaders()
Fix the content-type and encoding of this entity
Swift_Mime_MimePart::_setNestingLevel()
Set the nesting level of this entity

Class: Swift_Mime_SimpleMimeEntity

Swift_Mime_SimpleMimeEntity::__construct()
Create a new SimpleMimeEntity with $headers, $encoder and $cache.
Swift_Mime_SimpleMimeEntity::charsetChanged()
Receive notification that the charset of this entity, or a parent entity has changed.
Swift_Mime_SimpleMimeEntity::encoderChanged()
Receive notification that the encoder of this entity or a parent entity has changed.
Swift_Mime_SimpleMimeEntity::generateId()
Generate a new Content-ID or Message-ID for this MIME entity.
Swift_Mime_SimpleMimeEntity::getBody()
Get the body of this entity as a string.
Swift_Mime_SimpleMimeEntity::getBoundary()
Get the boundary used to separate children in this entity.
Swift_Mime_SimpleMimeEntity::getChildren()
Get all children added to this entity.
Swift_Mime_SimpleMimeEntity::getContentType()
Get the Content-type of this entity.
Swift_Mime_SimpleMimeEntity::getDescription()
Get the description of this entity.
Swift_Mime_SimpleMimeEntity::getEncoder()
Get the encoder used for the body of this entity.
Swift_Mime_SimpleMimeEntity::getHeaders()
Get the Swift_Mime_HeaderSet for this entity.
Swift_Mime_SimpleMimeEntity::getId()
Get the CID of this entity.
Swift_Mime_SimpleMimeEntity::getMaxLineLength()
Get the maximum line length of the body of this entity.
Swift_Mime_SimpleMimeEntity::getNestingLevel()
Get the nesting level of this entity.
Swift_Mime_SimpleMimeEntity::getRandomId()
Returns a random Content-ID or Message-ID.
Swift_Mime_SimpleMimeEntity::setBody()
Set the body of this entity, either as a string, or as an instance of Swift_OutputByteStream.
Swift_Mime_SimpleMimeEntity::setBoundary()
Set the boundary used to separate children in this entity.
Swift_Mime_SimpleMimeEntity::setChildren()
Set all children of this entity.
Swift_Mime_SimpleMimeEntity::setContentType()
Set the Content-type of this entity.
Swift_Mime_SimpleMimeEntity::setDescription()
Set the description of this entity.
Swift_Mime_SimpleMimeEntity::setEncoder()
Set the encoder used for the body of this entity.
Swift_Mime_SimpleMimeEntity::setId()
Set the CID of this entity.
Swift_Mime_SimpleMimeEntity::setMaxLineLength()
Set the maximum line length of lines in this body.
Swift_Mime_SimpleMimeEntity::toByteStream()
Write this entire entity to a Swift_InputByteStream.
Swift_Mime_SimpleMimeEntity::toString()
Get this entire entity as a string.
Swift_Mime_SimpleMimeEntity::_clearCache()
Empty the KeyCache for this entity.
Swift_Mime_SimpleMimeEntity::_fixHeaders()
Re-evaluate what content type and encoding should be used on this entity.
Swift_Mime_SimpleMimeEntity::_getCache()
Get the KeyCache used in this entity.
Swift_Mime_SimpleMimeEntity::_getHeaderFieldModel()
Get the model data (usually an array or a string) for $field.
Swift_Mime_SimpleMimeEntity::_getHeaderParameter()
Get the parameter value of $parameter on $field header.
Swift_Mime_SimpleMimeEntity::_getIdField()
Get the name of the header that provides the ID of this entity
Swift_Mime_SimpleMimeEntity::_setHeaderFieldModel()
Set the model data for $field.
Swift_Mime_SimpleMimeEntity::_setHeaderParameter()
Set the parameter value of $parameter on $field header.
Swift_Mime_SimpleMimeEntity::__destruct()
Empties it's own contents from the cache.
Swift_Mime_SimpleMimeEntity::__toString()
Returns a string representation of this object.

Class Details

[line 23]
The default email message class.



Tags:

author:  Chris Corbyn
filesource:  Source Code for this file


[ Top ]


Class Methods


constructor __construct [line 34]

Swift_Mime_SimpleMessage __construct( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, [string $charset = null])

Create a new SimpleMessage with $headers, $encoder and $cache.



Tags:

access:  public


Overridden in child classes as:

Swift_Message::__construct()
Create a new Message.

Overrides Swift_Mime_MimePart::__construct() (Create a new MimePart with $headers, $encoder and $cache.)

Parameters:

Swift_Mime_HeaderSet   $headers  
Swift_Mime_ContentEncoder   $encoder  
Swift_KeyCache   $cache  
string   $charset  

[ Top ]

method addBcc [line 372]

void addBcc( string $address, [string $name = null])

Add a Bcc: address to this message.

If $name is passed this name will be associated with the address.




Tags:

access:  public


Parameters:

string   $address  
string   $name   optional

[ Top ]

method addCc [line 324]

void addCc( string $address, [string $name = null])

Add a Cc: address to this message.

If $name is passed this name will be associated with the address.




Tags:

access:  public


Parameters:

string   $address  
string   $name   optional

[ Top ]

method addFrom [line 174]

void addFrom( string $address, [string $name = null])

Add a From: address to this message.

If $name is passed this name will be associated with the address.




Tags:

access:  public


Parameters:

string   $address  
string   $name   optional

[ Top ]

method addReplyTo [line 224]

void addReplyTo( string $address, [string $name = null])

Add a Reply-To: address to this message.

If $name is passed this name will be associated with the address.




Tags:

access:  public


Parameters:

string   $address  
string   $name   optional

[ Top ]

method addTo [line 274]

void addTo( string $address, [string $name = null])

Add a To: address to this message.

If $name is passed this name will be associated with the address.




Tags:

access:  public


Parameters:

string   $address  
string   $name   optional

[ Top ]

method attach [line 485]

void attach( Swift_Mime_MimeEntity $entity)

Attach a Swift_Mime_MimeEntity such as an Attachment or MimePart.



Tags:

access:  public


Parameters:

Swift_Mime_MimeEntity   $entity  

[ Top ]

method detach [line 495]

void detach( Swift_Mime_MimeEntity $entity)

Remove an already attached entity.



Tags:

access:  public


Parameters:

Swift_Mime_MimeEntity   $entity  

[ Top ]

method embed [line 515]

string embed( Swift_Mime_MimeEntity $entity)

Attach a Swift_Mime_MimeEntity and return it's CID source.

This method should be used when embedding images or other data in a message.




Tags:

access:  public


Parameters:

Swift_Mime_MimeEntity   $entity  

[ Top ]

method getBcc [line 407]

array getBcc( )

Get the Bcc addresses of this message.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::getBcc()
Get the Bcc addresses for this message.
[ Top ]

method getCc [line 359]

array getCc( )

Get the Cc address of this message.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::getCc()
Get the Cc addresses for this message.
[ Top ]

method getDate [line 110]

int getDate( )

Get the date at which this message was created.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::getDate()
Get the origination date of the message as a UNIX timestamp.
[ Top ]

method getFrom [line 211]

string getFrom( )

Get the from address of this message.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::getFrom()
Get the From address(es) of this message.
[ Top ]

method getNestingLevel [line 66]

int getNestingLevel( )

Always returns LEVEL_TOP for a message instance.



Tags:

access:  public



Implementation of:
Swift_Mime_MimeEntity::getNestingLevel()
Get the level at which this entity shall be nested in final document.
Overrides Swift_Mime_MimePart::getNestingLevel() (Get the nesting level of this entity.)

[ Top ]

method getPriority [line 450]

int getPriority( )

Get the priority of this message.

The returned value is an integer where 1 is the highest priority and 5 is the lowest.




Tags:

access:  public


[ Top ]

method getReadReceiptTo [line 476]

string getReadReceiptTo( )

Get the addresses to which a read-receipt will be sent.



Tags:

access:  public


[ Top ]

method getReplyTo [line 261]

string getReplyTo( )

Get the reply-to address of this message.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::getReplyTo()
Get the Reply-To addresses for this message.
[ Top ]

method getReturnPath [line 132]

string getReturnPath( )

Get the return-path (bounce address) of this message.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::getReturnPath()
Get the return-path (bounce-detect) address.
[ Top ]

method getSender [line 161]

string getSender( )

Get the sender of this message.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::getSender()
Get the sender address for this message.
[ Top ]

method getSubject [line 88]

string getSubject( )

Get the subject of this message.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::getSubject()
Get the subject of the message.
[ Top ]

method getTo [line 311]

array getTo( )

Get the To addresses of this message.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::getTo()
Get the To addresses for this message.
[ Top ]

method setBcc [line 388]

void setBcc( array $addresses, [string $name = null])

Set the Bcc addresses of this message.

If $name is passed and the first parameter is a string, this name will be associated with the address.




Tags:

access:  public



Implementation of:
Swift_Mime_Message::setBcc()
Set the Bcc address(es).

Parameters:

array   $addresses  
string   $name   optional

[ Top ]

method setCc [line 340]

void setCc( array $addresses, [string $name = null])

Set the Cc addresses of this message.

If $name is passed and the first parameter is a string, this name will be associated with the address.




Tags:

access:  public



Implementation of:
Swift_Mime_Message::setCc()
Set the Cc address(es).

Parameters:

array   $addresses  
string   $name   optional

[ Top ]

method setDate [line 97]

void setDate( int $date)

Set the date at which this message was created.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::setDate()
Set the origination date of the message as a UNIX timestamp.

Parameters:

int   $date  

[ Top ]

method setFrom [line 192]

void setFrom( string $addresses, [string $name = null])

Set the from address of this message.

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.




Tags:

access:  public



Implementation of:
Swift_Mime_Message::setFrom()
Set the From address of this message.

Parameters:

string   $addresses  
string   $name   optional

[ Top ]

method setPriority [line 417]

void setPriority( int $priority)

Set the priority of this message.

The value is an integer where 1 is the highest priority and 5 is the lowest.




Tags:

access:  public


Parameters:

int   $priority  

[ Top ]

method setReadReceiptTo [line 462]

void setReadReceiptTo( array $addresses)

Ask for a delivery receipt from the recipient to be sent to $addresses



Tags:

access:  public


Parameters:

array   $addresses  

[ Top ]

method setReplyTo [line 242]

void setReplyTo( string $addresses, [string $name = null])

Set the reply-to address of this message.

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.




Tags:

access:  public



Implementation of:
Swift_Mime_Message::setReplyTo()
Set the Reply-To address(es).

Parameters:

string   $addresses  
string   $name   optional

[ Top ]

method setReturnPath [line 119]

void setReturnPath( string $address)

Set the return-path (the bounce address) of this message.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::setReturnPath()
Set the return-path (bounce-detect) address.

Parameters:

string   $address  

[ Top ]

method setSender [line 143]

void setSender( $address, [string $name = null], string $sender)

Set the sender of this message.

This does not override the From field, but it has a higher significance.




Tags:

access:  public



Implementation of:
Swift_Mime_Message::setSender()
Set the sender of this message.

Parameters:

string   $sender  
string   $name   optional
   $address  

[ Top ]

method setSubject [line 75]

void setSubject( string $subject)

Set the subject of this message.



Tags:

access:  public



Implementation of:
Swift_Mime_Message::setSubject()
Set the subject of the message.

Parameters:

string   $subject  

[ Top ]

method setTo [line 292]

void setTo( array $addresses, [string $name = null])

Set the to addresses of this message.

If multiple recipients will receive the message and array should be used.

If $name is passed and the first parameter is a string, this name will be associated with the address.




Tags:

access:  public



Implementation of:
Swift_Mime_Message::setTo()
Set the To address(es).

Parameters:

array   $addresses  
string   $name   optional

[ Top ]

method toByteStream [line 556]

void toByteStream( Swift_InputByteStream $is)

Write this message to a Swift_InputByteStream.



Tags:

access:  public



Implementation of:
Swift_Mime_MimeEntity::toByteStream()
Get this entire entity as a ByteStream.
Overrides Swift_Mime_SimpleMimeEntity::toByteStream() (Write this entire entity to a Swift_InputByteStream.)

Parameters:

Swift_InputByteStream   $is  

[ Top ]

method toString [line 525]

string toString( )

Get this message as a complete string.



Tags:

access:  public



Implementation of:
Swift_Mime_MimeEntity::toString()
Get this entire entity in its string form.
Overrides Swift_Mime_SimpleMimeEntity::toString() (Get this entire entity as a string.)

[ Top ]

method _getIdField [line 573]

void _getIdField( )



Tags:

see:  Swift_Mime_SimpleMimeEntity::_getIdField()
access:  protected


Overrides Swift_Mime_SimpleMimeEntity::_getIdField() (Get the name of the header that provides the ID of this entity)

[ Top ]

method __toString [line 547]

string __toString( )

Returns a string representation of this object.



Tags:

see:  Swift_Mime_SimpleMessage::toString()
access:  public


Overrides Swift_Mime_SimpleMimeEntity::__toString() (Returns a string representation of this object.)

[ Top ]


Documentation generated on Mon, 05 Sep 2011 20:34:22 -0500 by phpDocumentor 1.4.3