Provides various routines to manipulate and create multipart messages from an
existing message (e.g. to make space for attachments in a message, or to
change a simple message to a multipart/alternative one, etc...)
- author Zaahid Bateson
Methods |
public __construct(ZBateson |
public createAlternativeContentPart(ZBateson Creates a new mime part as a multipart/alternative and assigns the passed
|
public createAndAddPartForAttachment(ZBateson Creates and adds a IMimePart for the passed content and options as an
|
public createContentPartForMimeType(ZBateson Creates a new content part for the passed mimeType and charset, making
|
public createMultipartRelatedPartForInlineChildrenOf(ZBateson Creates a multipart/related part out of 'inline' children of $parent and
|
public enforceMime(ZBateson Enforces the message to be a mime message for a non-mime (e.g. uuencoded
|
public findOtherContentPartFor(ZBateson Finds an alternative inline part in the message and returns it if one If the passed $mimeType is text/plain, searches for a text/html part.
|
public getContentPartContainerFromAlternative( $mimeType, ZBateson Searches the passed $alternativePart for a part with the passed mime type Used for alternative mime types that have a multipart/mixed or
|
public getUniqueBoundary( $mimeType) Creates and returns a unique boundary.
|
public moveAllNonMultiPartsToMessageExcept(ZBateson Moves all parts under $from into this message except those with a
|
public removeAllContentPartsByMimeType(ZBateson Removes the content part of the message with the passed mime type. If If the content part is part of an alternative part beneath the message,
|
public removeAllContentPartsFromAlternative(ZBateson Removes all parts of $mimeType from $alternativePart. If $alternativePart contains a multipart/mixed or multipart/relative part
|
public removePartByMimeType(ZBateson Removes the 'inline' part with the passed contentType, at the given index
|
public setContentPartForMimeType(ZBateson Either creates a mime part or sets the existing mime part with the passed
|
public setMessageAsAlternative(ZBateson Sets the passed message as multipart/alternative. If the message has content, a new part is created and added as a child of
|
public setMessageAsMixed(ZBateson Sets the passed message as multipart/mixed. If the message has content, a new part is created and added as a child of
|
public setMimeHeaderBoundaryOnPart(ZBateson Creates a unique mime boundary and assigns it to the passed part's
|
Properties |
Properties |
private $genericHelper
|