Scheduling SMS from PHP script

Scheduling SMS from PHP script SearchSearch
Author Message
Idris Akano
New member
Username: Iris

Post Number: 2
Registered: 04-2009
Posted on Tuesday, April 28, 2009 - 01:45 pm:   

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 - 09:42 pm:   

Hi,

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).

--
Des
NowSMS Support