diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-04-04 23:51:34 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-04-04 23:51:34 -0700 |
commit | 03dc4ca7e3a6f4fbd73cf9f83a3871a307d043a2 (patch) | |
tree | 1100ce3de341624ea81923d977eac929e478dd03 /src/objc/rfc822/MCOMessageBuilder.h | |
parent | d036437a499feafdd79994fcaa38d03b50929fe0 (diff) |
Header documentation for SMTP and RFC822.
Diffstat (limited to 'src/objc/rfc822/MCOMessageBuilder.h')
-rw-r--r-- | src/objc/rfc822/MCOMessageBuilder.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/objc/rfc822/MCOMessageBuilder.h b/src/objc/rfc822/MCOMessageBuilder.h index 576a37a7..fb48ac91 100644 --- a/src/objc/rfc822/MCOMessageBuilder.h +++ b/src/objc/rfc822/MCOMessageBuilder.h @@ -14,6 +14,23 @@ // This class will allow you to build a RFC 822 formatted message. +/* + +{ + ... + MCOMessageBuilder * builder = [[MCOMessageBuilder alloc] init]; + [[builder header] setFrom:[MCOAddress addressWithDisplayName:@"Hoa V. DINH" mailbox:@"hoa@etpan.org"]; + NSArray * to = [NSArray arrayWithObject:[MCOAddress addressWithDisplayName:@"Gael Roualland" mailbox:@"gael@etpan.org"]]; + [[builder header] setTo:to]; + [[builder header] setSubject:@"A nice picture!"]; + [builder setHTMLBody:@"<div>Here's the message I need to send.</div>"]; + [builder addAttachment:[MCOAttachment attachmentWithContentsOfFile:@"/Users/foo/Pictures/image.jpg"]]; + NSData * rfc822Data = [builder data]; + ... +} + + */ + @class MCOAttachment; @protocol MCOHTMLRendererDelegate; @@ -31,7 +48,8 @@ // List of related file attachments (included as cid: link in the HTML part). @property (nonatomic, copy) NSArray * relatedAttachments; -// Prefix for the boundary identifier +// Prefix for the boundary identifier. +// Default value is nil. @property (nonatomic, copy) NSString * boundaryPrefix; // Add an attachment. |