How to make this simple iPhone app: just launch Mail
<p><br>
I want to do a really simple iPhone app: when I start the app it will launch the Mail app.
I found this:  </p>

<pre><code>[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://foo@bar.com"]];
</code></pre>

<p>But:<br>
- What kind of projet in xcode I have to create (view based application, windows based application) ?<br>
- Then where do I have to put the line of code?</p>

<p>I tried few things, but nothing worked...</p>

<p>Sorry for my stupid question...<br>
Thanks a lot in advance!</p>
