I’m facing a issue with opening mail client using openURL. Here is the code.
NSString *subject = @"Demo Subject";
NSString *body = @"<html><head>Header</head><body><a href=\"http://example.com\">Here is the demo link</a></body></html>";
NSString *urlString = [NSString stringWithFormat:@"mailto:?&subject=%@&body=%@",subject,body];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
I guess, is there any kind of encoding needed to use special characters, which is do present, but not shown here in the sample text.
Thanks
1 Answer