Iphone SDK : Send Email in background in iphone app - email

Iphone sdk : how to send an email in background from an iphone app.
Based on certain selections made by the user I want to trigger an event to send an email to an admin.
I am aware of the MFMailComposeViewController but this will open the mail composer window which I want to skip.

You will need to use a third party library for that. The SDK doesn't allow you to send emails in the background.
Here's one you can use:
http://code.google.com/p/skpsmtpmessage/

This is an old question, but for anyone coming across it still you can take a look at this post. The accepted answer shows how to send the email in a background using a smtp server. It also includes an image that will "dim" the screen as the email is sent and "brighten" back up after the email is sent. Take a look at the screen shot to see what I mean.
Locking the Fields in MFMailComposeViewController

Related

Is there way to send SMS from iPhone app without user prompt?

We are going to build iPhone app6 that sends SMS in background.
Can we send SMS without user probpting?
Short answer NO.
It is due to privacy concern, last time when I search for stuff similar to your task, I was not even able to pre-fill the number to send the text. i.e., like pre-filling to email id when opening native mail app.
But you may explore private API to do this task.

Does Viber use MFMessageComposeViewController to send activation code to my iPhone

When you use Viber for the first time, it sends you an activaion code by SMS. I am working on the same action. After doing some research, (like "iPhone In-App SMS MFMessageComposeViewController Auto-Send" ), I have come to a conclusion but I'm not very sure it is correct. So I think some experts know the answer.
In iOS 4, we can use MFMessageComposeViewController to send SMS. However, the user will still see the SMS page and he/she needs to click 'send' button. In Viber, the user doesn't have to—he/she just gets a SMS without seeing the message page after he/she enters his/her own phone number. And all articles I read tell me iOS doesn't allow us to send SMS without user intervention.
I guess Viber has set up its own intermediate server that sends SMS. Is that correct?
Yeah, there are a number of web services that’ll send SMSs for you—Google ‘em. That’s most likely what they’re using; it’s definitely not the phone’s built-in SMS functionality.

Sending SMS in background from iPhone 4

I am creating an application that sends and SMS while taping on a button. To implement this functionality I installed the iPhone SDK 4. Since it supports in app SMS. But when I tap on my button to send SMS the MessageUI view controller is displayed along with my custom SMS body. I dont want to display this screen, I just need to send the SMS in the background with out displaying the SMS screen to the User.
Can any one help me in solving this.? Please help needed.
Thanks and Regards,
Shibin
I'm pretty sure there's no way to do this. Apple wants the user to confirm an SMS send for at least a couple of reasons:
SMS costs the user money to send
If your app could send without confirmation, you could spam contacts from the user's address book, or worse, give them a link to a phishing site that they trust because the text came from a trusted source
Why do you care if the user confirms the SMS or not? As soon as they tap "Send", the MessageUI view controller is dismissed and the user is back in your app's screen.
The only alternative I can think if is to send an NSHTTPURLRequest to a web service that provides an SMS gateway. That you could certainly do in the background, though likely you (the developer, not the user) would incur the cost of sending the messages, and the sender would not appear to be the user.
According to the official Class Reference provided by Apple, the composing message will always come up so that the user can confirm the message.
No, you cannot do that. There is a reason for that MessageUI controller showing - it's to confirm with the user that indeed the SMS is sent with her knowledge and understanding.
Without message body you can't send a message to the user. You want to send a message in background .Simply you refer the topic like web service, api reference .Its help you to send a message in background. hope this is helpful for you..

problem related email application

I want to send an email from my application whenever a user taps the SEND button of my view.I do not want to show the email interface to the user.All the fields needed for email will we filled via my application.So is there anyway to do this???
There is a project on Google Code called skpsmtpmessage which will allow you to send off a faceless email.
Alternatively you could have a look at the Pantomime package. It also contains implementations of the SMTP protocol. It has however not (yet) been ported to iPhone AFAIK, but since it's written in Cocoa it should not be that big a task for doing this specifically for the SMTP part..

send mail in background in iPhone

I want to send Email in the background of the application. I dont want to show the MailComposer Dialog box to add all the detail.
So How Can I do so ?
Thanks .
You will need to communicated directly with a specified mail server using a third-party library. If you wish to send the email using the iPhone users email account details, you will have to use Apple's mail composer dialog.
Here's a third party library that will let you send email without the Composer dialog
http://code.google.com/p/skpsmtpmessage/
-t