| Usage |
| Tuesday, 29 January 2008 | |
|
Execute Softabar Command Line Email Client using: java -cp . LauncherBootstrap sclec <options> in SCLEC-1.8.5/bin-directory.
CommandsSee all commands using -help option. Sending email
Sending email
Send email from a script or command line using -sendmail command. Required options for -sendmail are -smtpserver, -to and -from. These options send empty mail to recipient specified with -to option. Other options for -sendmail are: -smtppassword <password> SMTP server password. Some examples of using -sendmail can be seen using -examples sendmail command. Receiving emailReceive email using -readmail command. Required options are -pop3server, -pop3user and -pop3password. This command lists email (subject, sender and date) for specified user. Other options for -readmail are: -pop3password <password> POP3 server password. Syntax: "FIELD=value" where FIELD one of "from | subject". -delete Delete mail. Use with -read option. Note that -fwd and -fwd -tosender options require -sendmail options for sending mail. See Sending email above. Some examples of using -readmail can be seen using -examples readmail command. Monitoring directoryMonitor specified directory using -monitordir <directory> command. Default action is to send all files in the directory to recipient specified using -sendmail options (see Sending email above). Options for -monitordir are: -actionclass <class name> Custom class to execute when directory content See customization for instructions how to add a custom action using -actionclass option. Some examples of using -monitordir can be seen using -examples monitordir command. Monitoring fileMonitor specified file(s) using -monitorfile <files> command. Default action is to send files when they change to recipient specified using -sendmail options (see Sending email above). Options for -monitorfile are: -actionclass <class name> Custom class to execute when directory content See customization for instructions how to add a custom action using -actionclass option. Some examples of using -monitorfile can be seen using -examples monitorfile command. Monitoring emailMonitor specified email using using -monitoremail command, use -pop3 options to specify monitored email. Default action is to delete email from the server and save it locally to inbox-file. Forward and reply options use -sendmail options for sending mail. (see Sending email above). Options for -monitoremail are: -pop3password <password> POP3 server password. See customization for instructions how to add a custom action using -actionclass option. Some examples of using -monitoremail can be seen using -examples monitoremail command. Using email shellEmail shell is started using -emailshell command. Email shell is used to remotely manage a server. You specify email address to monitor using -pop3 options and send an email to that address from your other email address (adminemail). When Softabar Command Line Email Client receives an admin email it executes commands specified in the mail body. Each command is separated by a new line and commands are executed from Softabar Command Line Email Client process (current directory is directory where you started Softabar Command Line Email Client). Sample command email body may include commands such as: ls -la reply email has output of the above commands. Options for -emailshell are: -adminemail <email address>Administrator's email. Emails from this -nodelete option does not delete command email. This means that mail commands are executed each time when the software checks mail box. -cmdsubject is a subject of the command mail. See -examples emailshell. Email shell is not a real shell, such as bash or ksh, since there is no user interaction. Please do not use email shell to execute commands that require user interaction, results would be undefined. Using socket serverSocket server command, -server, is used to publish functionality of Softabar Command Line Email Client to other computers via TCP socket. A server socket is opened in a specified port and anyone can access the Softabar Command Line Email Client using custom client or just basic telnet. Commands and options are the same even when you use Softabar Command Line Email Client remotely. Options for -server are: -password <password> Server password. Each command sent to Softabar Command Line Email Client via socket server starts a new thread on the server machine. This enables to use single Softabar Command Line Email Client process to monitor many directories, files and email addresses. Socket server is available only with site and redistributable versions. Saving optionsYou can save options to a file using -saveas command. This takes all options in current command and saves them to specified file. Saved options can then be used with option -optionsfile. As an example you may have following options for sending mail: -sendmail -smtpserver mailserver.com -smtpuser me -smtppassword pwd -from You want to minimize typing so you type above options and include also -saveas mysendmail.options Later when you want to send email using SMTP you just type following option: -optionsfile mysendmail.options <and then all the other options, Other options-smtpdebug displays SMTP communication between Softabar Command Line Email Client and SMTP server. -ssl enables SSL for SMTP or POP3 communication.
|
|
| Last Updated ( Sunday, 15 March 2009 ) |