x[Warrior]x3500
06-11-2011, 12:43 AM
i have looked around and couldn't find anything , but i swear something about this was in someones sig :/
how can one email a message within a script?
UPDATE:
With the helpful suggestions posted below, i created this SMS texting procedure. this procedure is run by a free website host (so it will always be up and it can be used by anyone here :) ) . CURRENTLY, it only supports verizon numbers (dont know if it only works for only the US or not). i will add more carriers if ppl want me to.
to set it up:
1. add a global constant named "phonenumber" (string value of your phone number)... example:
const
phonenumber='5555555555';
2. add this function directly after DeclarePlayers() or forward it:
procedure sendTextMessage(msg:string);
var
test: integer;
begin
test:=(InitializeHTTPClient(false,false));
addpostvariable(test,'test',msg);
addpostvariable(test,'number',phonenumber);
postHTTPPageEx(test,'http://leafypiggy.com/test.php');
FreeHTTPClient(test);
end;
3. whenever you wish to send a text message use this command:
sendTextMessage('');
how can one email a message within a script?
UPDATE:
With the helpful suggestions posted below, i created this SMS texting procedure. this procedure is run by a free website host (so it will always be up and it can be used by anyone here :) ) . CURRENTLY, it only supports verizon numbers (dont know if it only works for only the US or not). i will add more carriers if ppl want me to.
to set it up:
1. add a global constant named "phonenumber" (string value of your phone number)... example:
const
phonenumber='5555555555';
2. add this function directly after DeclarePlayers() or forward it:
procedure sendTextMessage(msg:string);
var
test: integer;
begin
test:=(InitializeHTTPClient(false,false));
addpostvariable(test,'test',msg);
addpostvariable(test,'number',phonenumber);
postHTTPPageEx(test,'http://leafypiggy.com/test.php');
FreeHTTPClient(test);
end;
3. whenever you wish to send a text message use this command:
sendTextMessage('');