RBEmailSharingService Class Reference
Inherits from | RBSharingService : NSObject |
---|---|
Conforms to | MFMailComposeViewControllerDelegate |
Declared in | RBEmailSharingService.h |
– composeWithSubject:to:cc:bcc:body:isHtml:attachments:completion:
Opens the compose UI to send an e-mail.
- (BOOL)composeWithSubject:(nonnull NSString *)subject to:(nullable NSArray<NSString*> *)to cc:(nullable NSArray<NSString*> *)cc bcc:(nullable NSArray<NSString*> *)bcc body:(nonnull NSString *)body isHtml:(BOOL)isHtml attachments:(nullable NSArray<RBEmailAttachment*> *)attachments completion:(nullable void ( ^ ) ( BOOL cancelled ))completion
Parameters
subject |
The initial subject string value. |
---|---|
to |
An array of recipient e-mail addresses. |
cc |
An array of e-mail addresses to CC in the e-mail. |
bcc |
An array of e-mail addresses to BCC in the e-mail. |
body |
The initial body string value. |
isHtml |
Whether or not the body is in HTML format. |
attachments |
An array of |
completion |
An optional block to be called when the compose UI is concluded. |
Return Value
Whether or not the compose UI was opened successfully.
Discussion
Opens the compose UI to send an e-mail.
Declared In
RBEmailSharingService.h