Samples PDF Print E-mail
Wednesday, 17 June 2009

Sample commands how you can use SCLEC.

  1. View help and all available command line options.

    java -jar sclec-x.x.x.jar --help

  2. Install license file.

    java -jar sclec-x.x.x.jar license -install=ORDERNBR.lic

  3. View installed license file.

    java -jar sclec-x.x.x.jar license -view

  4. 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

  5. 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"

  6. 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"

  7. 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"

  8. 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"

  9. 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

  10. 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"

  11. 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

  12. 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

  13. List mail in a users inbox using POP3.

    java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd

  14. 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

  15. 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

  16. 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

  17. 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
  18. 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

  19. Save email as PDF.

    java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -read=1 -pdf

  20. 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

  21. List only the sender of email.

    java -jar sclec-x.x.x.jar list -server=mail.server.com -user=user -password=pwd -format=f

  22. 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

  23. 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

  24. 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=;

  25. 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"

  26. 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

Last Updated ( Tuesday, 28 July 2009 )
 

Newsflash

SCLEC-NXT has been updated to version 2.4.0.

New version is available here.

 
SCLEC-NXT 50% OFF!

Get 50% off of the SCLEC-NXT price.

Just  contact us indicating that you want to the discount.

Note that upon using the discount you agree to become a customer reference and Softabar reserves the right to use your company name and a link to your company in our customer reference page or pages.

PS. Discount includes also free support for version 2.x.x. 

 

Social Bookmark

Add to: Mr. Wong Add to: Power-Oldie Add to: Linkarena Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: Jumptags Add to: Upchuckr Add to: Simpy Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Netvouz Add to: Folkd Add to: Spurl Add to: Google Add to: Blinklist Information
Social Bookmarking
(c) 2005-2008 Softabar. All rights reserved.
Joomla Templates by JoomlaShack Joomla Templates