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 09-08-2011, 06:13 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 53
thehindutimes is on a distinguished road
Default send e-mail without user seeing it

Can you send an email without the user using the mailComposer?

If the user enters the information in textFields and clicks a button called send.
Can that information be loaded into the email automatically and sent without the user seeing the actual e-mail?

Thanks!
thehindutimes is offline   Reply With Quote
Old 09-08-2011, 06:25 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 6
phani is on a distinguished road
Default

Quote:
Originally Posted by thehindutimes View Post
Can you send an email without the user using the mailComposer?

If the user enters the information in textFields and clicks a button called send.
Can that information be loaded into the email automatically and sent without the user seeing the actual e-mail?

Thanks!
do u want to hide the MFMailComposeViewController screen from the user...so that he cant see the mail content in the MFMailComposeViewController view controller..
phani is offline   Reply With Quote
Old 09-08-2011, 06:34 AM   #3 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 53
thehindutimes is on a distinguished road
Default

Yes, I want to load the info the user has entered in the textFields into the e-mail. With the MFMailComposer hidden for the user.
thehindutimes is offline   Reply With Quote
Old 09-08-2011, 06:43 AM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Then you can't use the mail composer.

You could create a server side script (ASP, PHP...) that will accept the details as parameters and have the server send the email, but then it wont be sent from the user's mail account.
baja_yu is offline   Reply With Quote
Old 09-08-2011, 07:25 AM   #5 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 53
thehindutimes is on a distinguished road
Default

hmm...Maybe I could let the user see the e-mail then

So how would you load the information in NSUserDefaults into the e-mail?
thehindutimes is offline   Reply With Quote
Old 09-08-2011, 07:36 AM   #6 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

CocoaDev: NSUserDefaults
baja_yu is offline   Reply With Quote
Old 09-08-2011, 07:45 AM   #7 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 6
phani is on a distinguished road
Default

Quote:
Originally Posted by thehindutimes View Post
hmm...Maybe I could let the user see the e-mail then

So how would you load the information in NSUserDefaults into the e-mail?

Code:
//get the  from NSUserDefault u have stored
MFMailComposeViewController *mailController = [[MFMailComposeViewController alloc] init];
[mailController setSubject:@"Customer Inquiry"];
[mailController setToRecipients:[NSArray arrayWithObject:strmail]];
[mailController setMessageBody:body isHTML:NO];
baja_yu answers is much useful then mine
phani 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: 384
8 members and 376 guests
apatsufas, JackReidy, jeroenkeij, Sami Gh, tim0504, UMAD, yomo710
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,671
Threads: 94,121
Posts: 402,904
Top Poster: BrianSlick (7,990)
Welcome to our newest member, JackReidy
Powered by vBadvanced CMPS v3.1.0

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