I wrote this function to send sms:
But when I use it, no value that I wrote in Vars was not send to the server (Send.php file)!
Is there anybody to help me? (I use HTTP action plugin)
Code:
function Send(Username, Password, FromNumber, ToNumber, SMSText, FlashMode, ProxyData, Port, TimeOut) if not ProxyData then ProxyData = nil end if not Port then Port = 80 end if not TimeOut then TimeOut = 20 end if FlashMode then FlashMode = 1 else FlashMode = 0 end local res = nil Vars = {username = Username,password = Password,from = FromNumber,to = ToNumber,text = SMSText,flash = FlashMode} res = HTTP.SubmitMultipart("http://mysite.com/Send.php", Vars, SUBMITWEB_POST, TimeOut, Port, nil, ProxyData); return res end
Is there anybody to help me? (I use HTTP action plugin)
Comment