arturo322 Posted December 1, 2010 Share Posted December 1, 2010 i would like to send sms using AT Hayes command in php... is it possible? Link to comment https://forums.phpfreaks.com/topic/220367-is-there-a-way-to-send-sms-using-php/ Share on other sites More sharing options...
upp Posted December 1, 2010 Share Posted December 1, 2010 you can use the mail() function to send SMS messages, all you will need to know is the email address that the cell phone company uses to receive SMS messages, for example sprint uses messaging.sprintpcs.com att uses txt.att.net so if i was sending a message to a sprint phone i would use this code: <?php $number = '18001234567'; // enter phone number here $message = 'enter your message here'; mail($number . '@messaging.sprintpcs.com', 'SMS', $message); ?> Link to comment https://forums.phpfreaks.com/topic/220367-is-there-a-way-to-send-sms-using-php/#findComment-1141946 Share on other sites More sharing options...
arturo322 Posted December 2, 2010 Author Share Posted December 2, 2010 Can this send and recieve SMS messages? it works like this, Cellphone users texts command to simcard on sms modem, the sms modem recieves the data and processes the command, after processing sms modem sends response to the cellphone user Link to comment https://forums.phpfreaks.com/topic/220367-is-there-a-way-to-send-sms-using-php/#findComment-1142067 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.