Sample commands how you can use SCLEC.
-
View help and all available command line options.
java -jar sclec-x.x.x.jar --help
-
Install license file.
java -jar sclec-x.x.x.jar license -install=ORDERNBR.lic
-
View installed license file.
java -jar sclec-x.x.x.jar license -view
-
Verify given license file and execute command.
java -jar sclec-x.x.x.jar license -verify=ORDERNBR.lic list -server=server.com -user=user -password=pwd
-
Send simple mail with sender, recipient, subject and body.
java -jar sclec-x.x.x.jar send -server=smtphostname -from="Matti Salo <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>" -to=
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
-subject="This is mail subject" -body="this is body"
-
Send simple mail with sender, recipient, subject and body. Specify also SMTP server user name and password.
java -jar sclec-x.x.x.jar send -server=smtphostname -user=mailserveruser -password=12345 -from="Matti Salo <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>" -to=
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
-subject="This is mail subject" -body="this is body"
-
Send simple mail with sender, recipient, subject and body with multiple lines of text.
java -jar sclec-x.x.x.jar send -server=smtphostname -from="Matti Salo <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>" -to=
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
-subject="This is mail subject" -body="this is body line1" -body="this is body line2" -body="this is body line3"
-
Send simple mail with SSL.
java -jar sclec-x.x.x.jar send -server=smtphostname -ssl -from="Matti Salo <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>" -to=
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
-subject="This is mail subject" -body="this is body line"
-
Send HTML mail and read HTML from a separate file.
java -jar sclec-x.x.x.jar send -server=smtphostname -html -from="Matti Salo <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>" -to=
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
-subject="This is mail subject" -bodyfile=c:/mails/mailbody.html
-
Send simple mail and set importance to highest.
java -jar sclec-x.x.x.jar send -server=smtphostname -importance=HIGHEST -from="Matti Salo <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>" -to=
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
-subject="This is mail subject" -body="this is body line"
-
Send simple mail and attach a file and content of URL.
java -jar sclec-x.x.x.jar send -server=smtphostname -from="Matti Salo <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>" -to=
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
-subject="This is mail subject" -body="attachments" -attach=file.jpg -attach=http://server.host.name/images/image.jpg
-
Send simple mails from CSV file. CSV-file format is TAB-separated fields of: to, cc, bcc, subject, body, bodyfile, attachment files. Use comma to separate entries within fields such as comma separated list of attachment files. Extra fields at the end of row, if present, are ignored.
java -jar sclec-x.x.x.jar send -server=smtphostname -from="Matti Salo <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>" csv=mailstobesent.csv
-
List mail in a users inbox using POP3.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd
-
List mail in a user's inbox using IMAP.
java -jar sclec-x.x.x.jar list -imap -server=mail.server.com -user=user -password=pwd
-
Display number of emails in user's inbox.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -mailcount
-
Read first email in a users inbox.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -read=1
- Read all emails in a users inbox.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -read=all
-
Detach attachment in the first email in a users inbox.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -read=1 -detach
-
Save email as PDF.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -read=1 -pdf
-
Save email as PDF with specified file name.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -read=1 -pdf=c:/temp/receivedmail.pdf
-
List only the sender of email.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -format=f
-
List the sender and subject of emails.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -format=fs
-
List and save as CSV email date, sender and subject.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -format=dfs -dateformat="yyyyMMdd-HH:mm:ss" -saveas=mails.csv
-
List and save as CSV email date, sender and subject. Use semicolon as separator.
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -format=dfs -dateformat="yyyyMMdd-HH:mm:ss" -saveas=mails.csv -separator=;
-
List mail where email sender is from somewhere.com
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -search="FROM CONTAINS somewhere.com"
-
List mail where email sender includes somewhere.com or sender includes nowhere.com
java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -search="FROM CONTAINS somewhere.com" -search="FROM CONTAINS nowhere.com" -or