iOS: Detect SMS / Email Recipients - iphone

Is it possible to check how many of the recipients of your mail or sms successfully received the message you are sending? For instance I will send an SMS to 5 people and only 3 people received the message actually, how can I programmatically identify the number of recipients that actually receives my message? Please help me guys.. I'm really stuck with this..

It's not possible. SMS messaging is a one-way data flow. You send the message and the network will try to send it on. There is no receipt mechanism.
When they introduced iMessage, that has a delivery receipt mechanism (although it isn't always 100% correct) and can also mark if it has been read (if the recipient has read receipt turned on). But that isn't available for you to access programatically.
So, the short answer to your question is
No.

For iOS application, the answer may be "NO".
However, I am sorry to disagreed with Nick.
SMS was defined to have two-way communication between Message center and mobile terminal (MT). End user should be allow to read the SMS recipient.
If you want more information, you can check GSM Technical Specification (phase2+).
http://www.etsi.org/deliver/etsi_gts/03/0340/05.03.00_60/gsmts_0340v050300p.pdf
or in general language as following link:
http://www.developershome.com/sms/sms_tutorial.asp?page=basicConcepts
All the world mobile hand set developer (including Apple) should follow this industrial standard.
I found the "SMS recipient" setting from other mobile device, but NO iPhone.
In short, SMS support 2-way messaging, but Apple do follow the rule.

For your information, but NOT yet evaluated:
If build the SMS with your own application, you can try to add "heading" before as following link. Please share with us for you test with the message in this page after you try.
http://www.thinkjim.com/2008/07/sms-delivery-reports-on-iphone-3g.html

As I want to have the answer too, so I just google around.
and found a answer seem make sense.
This is the answer from offical iOS developer guide.
Wish this can help.
If the user requests that the message be sent, the system queues it for delivery and invokes the delegate object’s messageComposeViewController:didFinishWithResult: method. The result is one of “sent,” “cancelled,” or “failed.”
Details:
http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/SystemMessaging_TopicsForIOS/Articles/SendinganSMSMessage.html#//apple_ref/doc/uid/TP40010416-SW1

Related

send sms in the background programmatically in iphone using phonegap 2.9.0

I know we can use
MFMessageComposeViewController
to compose message and forward the SMS
My question is how can we send an SMS in the background ???
I am working on an application which has prefixed number of recipients and a fixed message body .
The user has to press a send button only once and this predefined message will be forwarded to all the recipients in the background .
The user should NOT be taken to messages application where he can edit the message body , add/remove recipients and then send the message
If there are any third party api then can they be used along with phonegap ?? and will the app be rejected ??
Kindly help !!!
Well, there is no documented solution. You may use undocumented approach, it is technically possible, but there is no way for You to AppStore then.
I only know native (ObjC) coding, not PhoneGap, but PhoneGap can't do more than native coding so I can tell you quite clearly that there is no way to send an SMS without opening the MFMessageComposeViewController. This is done to protect users from having messages sent without their consent. There is no way around this.

Auto send message and mails?

Ok I know there are many possible duplicate questions but none answers my question.
According to Apple's App Store Review Guidelines (if it is the official one) I can only find 4 rules stating anything about messaging
5.5 Apps that use Push Notifications to send unsolicited messages, or for the purpose of phishing or spamming will be rejected
6.5 Apps that use Game Center service to send unsolicited messages, or for the purpose of phishing or spamming will be rejected
21.2 The collection of donations must be done via a web site in Safari or an SMS
22.6 Apps that enable anonymous or prank phone calls or SMS/MMS messaging will be rejected
According to me these rules does not restrict auto sending a message completely, if we have user's concern of sending the SMS.
Now I want to know is there's anyway that I can auto send SMS on a scheduled time when the app is suspended, like we can fire UILocalNotification?
If Yes then how and if No then why?
I also don't want to use any third party API or some server side programming. I want to send a simple SMS from phone.
No you can not send an e-mail or SMS via the Apple provided SDK without the user sending the messages.
You could setup your own mail server of SMS server to provide a solution to this, but you will not be able to do it with the Apple provided SDK.
The reason why this is implement this way is to protect the user, since you could just send 100 SMS to some kind of server number and thus make the user unaware of the costs.
Or you app could start spamming user with email by sending email without the users consent.

Can I send email programmatically in iPhone app?

I need to be able to send a pre-formatted email or SMS text message programmatically from within an iphone app. Can this be done? I have looked at apple's MFMailComposeViewController class, but this "provides a standard interface that manages the editing and sending an email message" and the MFMessageComposeViewController class also has it's own "standard system interface for composing SMS text messages". These allow you to present an interface to the user where they have to fill in all the data and then explicitly press a send button.
I cannot use this boilerplate functionality.
I need to be able to send a message without presenting any interface to the user. I know this sounds evil, but actually it is for a commercial application which needs to communicate to a user group in a central office when users in the field have performed specific actions out in the field.
Has anyone found a solution to this?
After much investigation, I have found that sending emails programmatically, without user intervention, from an iphone application, cannot be implemented using any of the apple frameworks.
Set up a web service you can post to using an HTTP request. If you are posting to only one address this can work very well, although you may want to get the user to input their return mail address.
Otherwise only the standard dialog is available (this relies on using whatever account they've setup on the device).
Here are a few SMTP API's that work on OS X. They might work on iOS as well.
Pantomime
MailCore
EdMessage
Only Possible via Web Interface, you can not hide the Interface , this is as per apple Guidlines to Developer and as per documentation
Looking for a solution to such a problem, I found something interesting here: How to send mail from iphone app without showing MFMailComposeViewController?
I hope this will be useful!
This is standard not possible. If you can't use the standard dialog you need to use SMTP.
SMS is the same, use the dialog of use a webbased sms service (most of these cost some money).
I have no experience with iOS, but I have enough experience with email protocols to say I'd be very surprised if a client application could send email without accessing a server. More than likely, the email will be sent using the SMTP protocol and therefore must be sent using an SMTP server. Choosing how you connect to that server is about the only option you have. You could connect to a server-side script (such as php) to generate and send the email, or you may be able to create a socket and connect directly to port 25 on the SMTP server and still generate the email from you client application.
Check out:
RFC 5321 at https://www.rfc-editor.org/rfc/rfc5321
SMTP on Wikipedia at http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol
You could always do a low level telnet using SMTP protocol to a known mail server to send a message. I don't know if Apple will reject the app, but SMTP is damned simple.

sms access project

i was searching on the net for a method which can inform an incoming message on receivers phone.
but everyone said it is not possible
but there is an app. which is approved from apple
here is the url
http://itunes.apple.com/us/app/tigertext/id355832697?mt=8
if i am not wrong this is doing similar kind of work...(i.e. accessing incoming sms)
please reply i am waiting...
and sorry if i am wrong about the working of that app...
This is not sms, but an alternative chat protocol, most probably using the push notification service.

how to send SMS/Email from an application

first of all thanks a lot to all of you for past valuable suggestions,we are creating an application where on certain events wants to send email/sms to specified phone number we already tried with the openURL call but it opens the existing inbuilt email/sms application of the iphone.Our requirement is to send sms/email without opening the inbuilt iphone email/sms application is it possible if yes what are the supported API's to achieve it.
thanks in advance.
You can do this with a short code by way of a SMS/MMS aggregator like OpenMarket or as another person has posted you can use the SMS Gateway but this requires the knowledge of the end users carrier name. If your replying to a SMS on the iPhone I believe you can use the API which in turn would give you the carrier id of the incoming SMS message you would like to reply to.
Maybe you could explain your problem a little more so we can better grasp your question.
You can see my other answer from a similar question. Basically you can send an email to the phone if you know the provider. The provider will then format the email into a SMS message.