Saurav Sinha
Saurav Sinha

Reputation: 41

MFMailComposeViewController attachment file

When I attach files to a message using an MFMailComposeViewController, the data is attached before the signature, This signature connected with separate file .txt. Is it possible to display the attachments AFTER the signature?

Upvotes: 1

Views: 1634

Answers (1)

hacker
hacker

Reputation: 8957

if you are sending image data or image file (it is not clear from your description)change it according to the type of file you are sending in the button action UIImage *imageName =[UIImage imageNamed:@"splash_sml.png"]; IMgdata = UIImagePNGRepresentation(imageName);

and in the displayComposerSheet method add this

[picker addAttachmentData:IMgdata
                 mimeType:@"image/png"
                 fileName:@"content-id"];

Upvotes: 2

Related Questions