Inherits from AMPMCOAbstractPart : AMPObject : NSObject
Declared in AMPMCOAttachment.h
AMPMCOAttachment.m

Class Methods

attachmentWithContentsOfFile:

Returns a file attachment with the content of the given file.

+ (AMPMCOAttachment *)attachmentWithContentsOfFile:(NSString *)filename

Declared In

AMPMCOAttachment.h

attachmentWithData:filename:

Returns a file attachment with the given data and filename.

+ (AMPMCOAttachment *)attachmentWithData:(NSData *)data filename:(NSString *)filename

Declared In

AMPMCOAttachment.h

attachmentWithHTMLString:

Returns a part with an HTML content.

+ (AMPMCOAttachment *)attachmentWithHTMLString:(NSString *)htmlString

Declared In

AMPMCOAttachment.h

attachmentWithRFC822Message:

Returns a part with a RFC 822 messsage attachment.

+ (AMPMCOAttachment *)attachmentWithRFC822Message:(NSData *)messageData

Declared In

AMPMCOAttachment.h

attachmentWithText:

Returns a part with an plain text content.

+ (AMPMCOAttachment *)attachmentWithText:(NSString *)text

Declared In

AMPMCOAttachment.h

attachmentWithText:mimeType:

Returns a part with an plain text content with mime type

+ (AMPMCOAttachment *)attachmentWithText:(NSString *)text mimeType:(NSString *)contentType

Declared In

AMPMCOAttachment.h

mimeTypeForFilename:

Returns a MIME type for a filename.

+ (NSString *)mimeTypeForFilename:(NSString *)filename

Declared In

AMPMCOAttachment.h

Instance Methods

data

Decoded data of the part.

- (NSData *)data

Declared In

AMPMCOAttachment.h

decodedString

Returns string representation according to charset

- (NSString *)decodedString

Declared In

AMPMCOAttachment.h