How to send sms using php script from ftp server

ⅰ亾dé卋堺 提交于 2019-12-11 14:03:14

问题


I'm trying to send a sms using php from my ftp server in the background. I want to send a sms whenever I query data from one of my folders. I send GPS coor. to my ftp server in the form of a txt file and use php script to query that data and display it using google maps. I want to send the sms whenever it pulls the lonlat. I know of the mail() in php but wondering how to implement it. I am new to php and have been assisting someone else on this but we have reached a deadend. We're are trying to do this for free.


回答1:


You can send an SMS by sending an email to the phonenumber@the provider's email address. For example, if the user you wanted to text was a verizon customer and their phone number was 800-555-1234 you would send an email to 8005551234@vtext.com and they would get the text message.

This web page provides a nice list of the providers and what email address to use for them.




回答2:


The ideal way to do this is to create an account with an SMS gateway and send messages through their api. You can send SMS messages via email addresses for most providers, but you have to either know the cell phone carrier OR try emailing all of them. It's a bit of a pain to maintain the email list, as well.




回答3:


In 99% of the time, the carriers will charge $ for sending SMS's through their gateway. On top of it, you would need a way to interface the gateway that will route/transport the messages for you.

A quick google search for the terms: cheap sms gateway php - Rendered too many links, but one of them points to an article review of a free(aka AD supported gateway) that I have never heard of, that you may want to try.

By using their API, you will be able to interact with their service, a full length guide is there for your perusal:

The Guide: http://www.zeepmobile.com/developers/getting_started/register_your_app

How to send a message through their API: http://www.zeepmobile.com/developers/getting_started/send_a_message




回答4:


you can send sms in php. https://www.youtube.com/watch?v=fGFhy0APrLw live video and also you can get link for download supported software



来源:https://stackoverflow.com/questions/10441234/how-to-send-sms-using-php-script-from-ftp-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!