When you add an attachment, do you set the mime type correctly for your custom file type? Perhaps you need to explicitly convert the UTI to a MIME type, and then specify that when using the MFMailComposeViewController method:
- (void)addAttachmentData:(NSData*)attachment mimeType:(NSString*)mimeType fileName:(NSString*)filename
Convert UTI to MIME Type
NSString *filePath = ...
Be sure to add and import the following frameworks:
#import <MobileCoreServices/MobileCoreServices.h> #import <CoreServices/CoreServices.h>
Code Snippet Source: Damien DeVille
source share