-6
Need help , I want to know and implement this problem.

My problem is, In textfield i give greater than or equal to 10 digit mobile number(International Numbers or National Numbers) . when i click submit button need to send some message to that number..

Please give the sample code with brief example using php.

  • Please give the sample code you tried – Med May 20 '15 at 09:52
  • sad your hopes might shatter. We are here to help each other debugging pieces . If you have to learn try it and then ask here if you are stuck somewhere – Preeti Maurya May 20 '15 at 09:52
  • Guys one textfield and submit button that's it. Using PHP Mailer through smtp is there possible to send mail . Just can you please do and post the code and your suggestion Med and Preethi Maurya – IRSHAD SAHEB May 20 '15 at 09:57
  • @IRSHADSAHEB You can't send SMS directly from PHP. you need to use an sms gateway. Then you can use their API to send SMS. Some sms gateways support calls via mail. Those SMS gateways are paid services you ll need signup and pay to start sending. – Jya May 20 '15 at 10:02

1 Answers1

3

You can't send SMS directly from PHP. You will have to make use of an SMS gateway API. Nexmo is a good service.

aharen
  • 627
  • 3
  • 13