Skip to content


Method to Launch Mail Application

Here is a simple method to send an email via the iPhone’s Mail application:

-(void) sendEmail {
NSURL* mailURL = [NSURL URLWithString: @"mailto:email@address.com?cc=another@email.com&subject=My%20Subject%20Line&body=Hello%20Email!"];
[[UIApplication sharedApplication] openURL: mailURL];

}

Posted in iPhone Code Snippet.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.