Yes, using the built-in Mail.app to send emails is really easy. You just need to pass the email's details to the app delegate via its openURL: method, and it will deal with it all for you. Here's some sample code:
Code:
UIApplication *theApplication = [UIApplication sharedApplication];
NSString *recipient = [NSString stringWithString:@"someone@somewhere.com"];
NSString *subject = [NSString stringWithString;@"The subject line"];
NSString *body = [NSString stringWithString:@"This is a really dull email. Sorry."];
NSString *s = [NSString stringWithFormat:@"mailto:%@?subject=%@&body=%@", recipient, subject, body];
NSString *mailString = [s stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSURL *url = [[NSURL alloc] initWithString:mailString];
[theApplication openURL:url];
There are a couple of caveats, though:
1. Because you are using Mail.app, which is a separate application, your own application will
close. So, users will need to send the message, then press the home button and fire up your app again.
2. There is no means of adding an attachment using this method. Bummer.
How to get around it? Well, the best way to work around both the problems would actually be to implement a very simple SMTP client inside your application. You could probably find code on the web that you could adapt. It would mean that you could send the mail from within your application, so it wouldn't need to close, and that you could implement the attachment of, um attachments. Good luck!