In my app, my user fills out first name and email fields. I want to send this data to an email address when the user taps the "Submit" button, but the only way I can seem to do that is by having the Apple Mail client open. Right now, I'm using the following code - is there a way to send field data to a specific email address without launching Apple Mail? E.g. user taps "submit", and gets pushed to a "Thank You" view?
MFMailComposeViewController *mail =[[MFMailComposeViewController alloc] init];
NSString *emailbody = email.text;
NSString *firstnamebody = firstName.text;
[mail setMessageBody:emailbody isHTML:NO];
[mail setMessageBody:firstnamebody isHTML:NO];