-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmailController.h
More file actions
25 lines (21 loc) · 834 Bytes
/
Copy pathEmailController.h
File metadata and controls
25 lines (21 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// Copyright (c) 2012 Norman Basham
// http://www.apache.org/licenses/LICENSE-2.0
//
#import <Foundation/Foundation.h>
#import <MessageUI/MessageUI.h>
#import <MessageUI/MFMailComposeViewController.h>
@interface EmailController : NSObject<MFMailComposeViewControllerDelegate>
@property(strong, nonatomic)NSData* attachment;
@property(strong, nonatomic)NSMutableArray* recipients;
@property(strong, nonatomic)NSString* subject;
@property(strong, nonatomic)NSString* body;
@property(strong, nonatomic)NSString* mimeType;
@property(strong, nonatomic)NSString* attachmentName;
@property(assign, nonatomic)BOOL isHTML;
@property(assign, nonatomic)BOOL logResult;
-(void)addRecipient:(NSString*)recipient;
-(void)attachImage:(UIImage*)image;
-(void)attachViewScreenshot:(UIView*)v;
-(void)sendEmail:(UIViewController*)vc;
@end