MFMailComposeViewController configure mimetype for attachment
- by user749918
I need some help.
I am trying to attach files to mail using,
[mail addAttachmentData:attachmentData mimeType:@"image/png" fileName:fileName];
but the problem is that if i need to send a .jpeg image i need to repeat code just for setting mime type to "mimeType:@"image/jpeg".
My question is that is there any general mimeType that can attach any kind of file irrespective of .doc,.ppt,.pdf or an audio or video file.
is there any general mimeType: for an kind of attachment.
Thanks in advance.