|
|
The sendpage commandline program can be used to send messages to PageGate. It can be run from a DOS or Windows commandline, or from within any program that can issue a commandline (shell) command. Sendpage must be told where to create its temporary message files. This location must be the same as the GetAscii Polling Directory, which is set in PageGate's Admin program. The person or application that runs sendpage.exe must have sufficient rights to create files in this directory. The syntax of sendpage.exe is as follows (typing sendpage.exe /? will also give this information):
sendpage [-dir=dest] to from message
'sendpage' is the name of the program itself
-dir= is a commandline option that sets the directory to where the temporary message files will be stored.
'dest' should be replaced with the actual path to the GetAscii Polled directory
'to' should be replaced with the recipient's name of who the message is to (can not be blank)
'from' should be replaced with who the message is being sent from (can not be blank)
'message' should be replaced with the actual message text (can not be blank)
Example: sendpage -dir=c:\pages Chris Peter This is a test message
Optionally a DOS environment variable can be set so that the [-dir=dest] option does not need to be included in the command. The environment variable name is SNDPGDIR.
Example: SET SNDPGDIR=C:\PAGES
Here is the same example message with the SNDPGDIR environment variable set:
Example: sendpage Chris Peter This is a test message
If sendpage.exe is run from the same directory which is being polled by PageGate's GetAscii module, the -dir flag and SNDPGDIR variable are not needed.
*** Please note: a program named sendpage32.exe is now included with PageGate's GetAscii interface. It operates in the exact same way as sendpage.exe. Sendpage32.exe however, is a 32-bit program. This means that it may be able to be executed from within some 32-bit application that are unable to run 16-bit programs. This also means that it may be unable to be executed from some 16-bit applications. An advantage of using sendpage32.exe over sendpage.exe is that sendpage32 may be able to accept more characters on it's commandline (this can depend on the program running sendpage32.exe). Due to a DOS/Windows limitation, sendpage.exe can only accept 128 characters on it's commandline.