Scheduling SMS from PHP script

Scheduling SMS from PHP script SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through June 24, 2009 » Scheduling SMS from PHP script « Previous || Next »
Author Message
Idris Akano
New member
Username: Iris

Post Number: 2
Registered: 04-2009
Posted on Tuesday, April 28, 2009 - 11:45 am:   

Pls hw do i schedule sending sms from PHP script.

Pls can you help me modify this script.

fwrite($fp, "GET /?Phone=" . rawurlencode($phoneNoRecip) . "&Sender=" . rawurlencode($sender) . "&Text=" . rawurlencode($msgText) . " HTTP/1.0\n");
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 716
Registered: 08-2008
Posted on Tuesday, April 28, 2009 - 07:42 pm:   


You'd need to modify the SendSMS function to include a "DelayUntil" parameter that specifies the date/time at which the message should be released.

For example ...

Assume that you add a "$delayuntil" parameter to the SendSMS function like this:

SendSMS ($host, $port, $username, $password, $phoneNoRecip, $msgText, $delayuntil)

If you do that, you can modify the line of code that builds the URL to include this parameter like this:

fwrite($fp, "GET /?Phone=" . rawurlencode($phoneNoRecip) . "&DelayUntil=" . rawurlencode($delayuntil) . "&Text=" . rawurlencode($msgText) . " HTTP/1.0\n");

The DelayUntil parameter for NowSMS should include a date/time in the format YYYYMMDDHHMM (year/month/day/hour/minute).

NowSMS Support

Login Login / Register Logout Logout Search Last 30 Days Topics Topics