Class Zend_Mime_Message

Description

Located in /Zend/Mime/Message.php (line 41)


	
			
Variable Summary
mixed $_mime
mixed $_parts
Method Summary
static Zend_Mime_Message createFromMessage (string $message, string $boundary)
void addPart ( $part)
String generateMessage ()
Zend_Mime getMime ()
string getPartContent (int $partnum)
string getPartHeaders (int $partnum)
array getParts ()
bool isMultiPart ()
void setMime ( $mime)
void setParts (array $parts)
Variables
mixed $_mime = null (line 45)
  • access: protected
mixed $_parts = array() (line 43)
  • access: protected
Methods
static method createFromMessage (line 190)

decodes a mime encoded String and returns a MimeMessage object with all the mime parts set according to the given string

  • access: public
static Zend_Mime_Message createFromMessage (string $message, string $boundary)
  • string $message
  • string $boundary
addPart (line 77)

Append a new Zend_Mime_Part to the current eMail

  • access: public
void addPart ( $part)
  • Zend_Mime_Part $part
generateMessage (line 134)

Generate Mime Compliant Message from the current configuration This can be a multipart message if more than one mimeParts were added. If only one Part is present, the content of this part is returned. If no part had been added, an empty string is returned.

Parts are seperated by the mime boundary as defined in Zend_Mime. If setMime has been called before this method, the Zend_Mime object set by this call will be used. Otherwise, a new Zend_Mime Object is generated and used.

  • access: public
String generateMessage ()
getMime (line 116)

returns the Zend_Mime object in use by this Message.

If the object was not present, it is created and returned. Can be used to determine the boundary used in this message.

  • access: public
Zend_Mime getMime ()
getPartContent (line 176)

get the (encoded) content of a given part as a string

  • access: public
string getPartContent (int $partnum)
  • int $partnum
getPartHeaders (line 164)

get the headers of a given part as a string

  • access: public
string getPartHeaders (int $partnum)
  • int $partnum
getParts (line 54)

Returns the list of all Zend_Mime_Parts in this Mail as an Array.

  • return: of Zend_Mime_Part
  • access: public
array getParts ()
isMultiPart (line 91)

check if message needs to be sent as multipart mime message of if it has only one part.

  • access: public
bool isMultiPart ()
setMime (line 103)

set mime Object for this Message. This can be used to set the Boundary specifically or to use a SubClass of Zend_Mime for generating the boundary.

  • access: public
void setMime ( $mime)
  • Zend_Mime $mime
setParts (line 66)

sets the given Array of Zend_Mime_Parts as the Array for this eMail.

  • access: public
void setParts (array $parts)
  • array $parts

Documentation generated on Sun, 29 Oct 2006 21:27:59 -0600 by phpDocumentor 1.3.0RC6