0

Possible Duplicate:
How to programmatically send SMS on the iPhone?

Has anyone succeeded to send SMS using php script or whatever (programmatically) via own iPhone5 and how? Iphone4 seems to lack support for programmatic sending without jailbreaking.

Community
  • 1
  • 1
Timo Kähkönen
  • 11,962
  • 9
  • 71
  • 112

1 Answers1

1

This is not something you can trigger via webkit which is the only way PHP can interact with the iPhone. As for firing an SMS, you can always use an email gateway (you will need to know the carrier of the number you are trying to send the message to), or you can use something like Twilio which makes sending (and responding to) SMS extremely easy (even from PHP).

Jason Sperske
  • 29,816
  • 8
  • 73
  • 124
  • Is Twilio not email gateway? Have you used Twilio self? Do they charge for failed messages (eg. wrong recipient)? – Timo Kähkönen Sep 29 '12 at 23:31
  • I do use Twilio (I made this: http://vgpedia.net, checkout the phone number) as well as some other services that both send and respond to SMS, it's really cool). They charge for each attempt, even if you have the wrong number then. They are like an email gateway but they use a REST interface and remove the need to know which carrier owns the number. A good pattern to limit the chance of using a wrong number is to have the user send a text message to your Twilio number. This will capture their phone number (similar to caller ID) and act as a confirming step. – Jason Sperske Sep 29 '12 at 23:45