Q:

Send mail through code without opening MailComposer or new view

In my application i want to send mail to some one.
If i use following code new window for gets opened for mail.
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:string]];

And if i use MailComposer then same controller will shown for mail.
But i want to send mail direct from my code by opening any screen or view in my application, with the help of mail address, subject and body part.
Any help ?

A:

download the sample code from skpsmtpmessage - Google Code and ran that.
You might require to change few things but it will work.

