Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 686 Bytes

BRYMailToURIParser

Simple Objective-C parser for mailto URIs. With tests!

Installation

Via CocoaPods, of course:

pod install BRYMailToURIParser

Usage

BIMailToURIParser *parser = [[BIMailToURIParser alloc] initWithURL:
                             [NSURL URLWithString:@"mailto:bryan@domain.me?subject=Hey"]];
NSArray *recipients = parser.toRecipients;
NSArray *ccRecipients = parser.ccRecipients;
NSArray *bccRecipients = parser.bccRecipients;
NSString *subject = parser.subject;
NSString *body = parser.body;

License

Available for use under the MIT license: http://bryan.mit-license.org