Class Zend_Mime_Message

Description

Located in /library/Zend/Mime/Message.php (line 37)


	
			
Direct descendents
Class Description
 class Zend_Mail Class for sending an email.
Variable Summary
 mixed $_mime
 mixed $_parts
Method Summary
 void addPart (Zend_Mime_Part $part)
 Zend_Mime_Message createFromMessage (string $message, string $boundary)
 String generateMessage ()
 string getPartContent (int $partnum)
 string getPartHeaders (int $partnum)
 array getParts ()
 bool isMultiPart ()
 void setMime (Zend_Mime $mime)
 void setParts (array $parts)
 array _disassembleMime (string $body, string $boundary)
Variables
mixed $_mime = null (line 41)
  • access: protected
mixed $_parts = array() (line 39)
  • access: protected
Methods
addPart (line 73)

Append a new Zend_Mime_Part to the current eMail

  • access: public
void addPart (Zend_Mime_Part $part)
createFromMessage (line 227)

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

  • static:
  • access: public
Zend_Mime_Message createFromMessage (string $message, string $boundary)
  • string $message
  • string $boundary
generateMessage (line 130)

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 112)

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 172)

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

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

get the headers of a given part as a string

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

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 87)

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

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

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 (Zend_Mime $mime)
setParts (line 62)

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

  • access: public
void setParts (array $parts)
  • array $parts
_disassembleMime (line 186)

explode mime multipart string into seperate parts the parts consist of the header and the body of the mime part.

  • access: protected
array _disassembleMime (string $body, string $boundary)
  • string $body
  • string $boundary

Documentation generated on Wed, 08 Mar 2006 04:53:34 -0800 by phpDocumentor 1.3.0RC4