MFMailComposeViewController configure mimetype for attachment
Posted
by
user749918
on Stack Overflow
See other posts from Stack Overflow
or by user749918
Published on 2011-12-13T06:06:12Z
Indexed on
2012/04/04
23:29 UTC
Read the original article
Hit count: 168
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.
© Stack Overflow or respective owner