Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-05-2009, 05:03 PM   #1 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 176
iphonewave is on a distinguished road
Default Code to compose mail (body and subject) and bring-up email

Any ideas ? thanks in advance
iphonewave is offline   Reply With Quote
Old 02-05-2009, 05:12 PM   #2 (permalink)
1026 Development
 
Join Date: Jul 2008
Age: 23
Posts: 1,094
Jeremy1026 is on a distinguished road
Send a message via AIM to Jeremy1026
Default

Code:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://]];
then just use the HTML mailto format for the email address, subject, and body.
Jeremy1026 is offline   Reply With Quote
Old 02-05-2009, 05:49 PM   #3 (permalink)
Registered Member
 
RickMaddy's Avatar
 
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
RickMaddy will become famous soon enough
Default

Except the 'mailto:' URL doesn't have slashes in it. The proper format for a 'mailto' URL is:

mailto:[someone@somewhere.com][?[subject=encoded_subject][&body=encoded_message_body]]
RickMaddy is offline   Reply With Quote
Old 02-05-2009, 05:56 PM   #4 (permalink)
1026 Development
 
Join Date: Jul 2008
Age: 23
Posts: 1,094
Jeremy1026 is on a distinguished road
Send a message via AIM to Jeremy1026
Default

Quote:
Originally Posted by RickMaddy View Post
Except the 'mailto:' URL doesn't have slashes in it. The proper format for a 'mailto' URL is:

mailto:[someone@somewhere.com][?[subject=encoded_subject][&body=encoded_message_body]]
See how much HTML I forgot when I picked up on Obj.-C
Jeremy1026 is offline   Reply With Quote
Old 02-05-2009, 06:04 PM   #5 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 176
iphonewave is on a distinguished road
Default

Excellent help. Thanks.
iphonewave is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 325
6 members and 319 guests
Anwerbl, guusleijsten, HowEver, LEARN2MAKE, mottdog, Objective Zero
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,879
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:37 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0