I am using MFMailComposeViewController
to Compose email with attachment and it's working fine
Now I want to compose image with attachment with native email client. I am using code below
NSString *customURL =[NSString stringWithFormat:@"googlegmail:///co?to=[t0]&subject=[subject]&body=[body]"];
NSURL *url = [NSURL URLWithString:customURL];
if ([[UIApplication sharedApplication]
canOpenURL:url])
{
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {
NSLog(@"%d",success);
}];
}
else
{
//not installed, show popup for a user or an error
}
It's working fine with subject and Body, but I am not able to attach attachments(ie:Zip file, screen shots).
is there any way to add attachment, while using gmail or any other client app.