spacer
spacer
spacer
spacer
spacer
spacer
spacer
spacer

Email Client

Email Client for Command Line Program. Send email (SMTP) and receive email (POP3 and IMAP) from the command line.

Email Client commands and options

sendemail: Send mail using SMTP (options).

rcvemail: List/read mail using POP3/IMAP (options).

Install and sample usage

Download Command Line Program and install Email Client add-on commands using:

  • [CLP] admin –install=’com.softabar.clp.addons.emailclient’

[CLP] is command to execute Command Line Program. See User/Developer Guide for more details.

Sample commands below show how to send/read email using email client commands.

  • Send simple mail with sender, recipient, subject and body:
    • [CLP] sendemail  -server=’smtphostname’ -from=”Matti Salo <msaloemail@somewhere.com>” -to=’recipient@somewhereelse.org’ -subject=”This is mail subject” -body=”this is body”
  • Send simple mail with SSL:
    •  [CLP] sendemail -server=’smtphostname’ -ssl -from=”Matti Salo <msaloemail@somewhere.com>” -to=’recipient@somewhereelse.org’ -subject=”This is mail subject” -body=”this is body line”
  • Send HTML mail and read HTML from a separate file:
    •  [CLP] sendemail -server=’smtphostname’ -html -from=”Matti Salo <msaloemail@somewhere.com>” -to=’recipient@somewhereelse.org’ -subject=”This is mail subject” -bodyfile=’c:/mails/mailbody.html’
  • Send simple mail and set importance to highest:
    • [CLP] sendemail -server=’smtphostname’ -importance=HIGHEST -from=”Matti Salo <msaloemail@somewhere.com>” -to=’recipient@somewhereelse.org’ -subject=”This is mail subject” -body=”this is body line”
  • Send simple mail and attach a file and content of URL:
    • [CLP] sendemail  -server=’smtphostname’ -from=”Matti Salo <msaloemail@somewhere.com>” -to=’recipient@somewhereelse.org’ -subject=”This is mail subject” -body=”attachments” -attach=’file.jpg’ -attach=’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:
    • [CLP] sendemail  -server=’smtphostname’ -from=”Matti Salo <msaloemail@somewhere.com>” csv=’mailstobesent.csv’
  • List mail in a users inbox using POP3:
    • [CLP] rcvemail -server=’mail.server.com’ -user=’user’ -password=pwd
  • List mail in a user’s inbox using IMAP:
    • [CLP] rcvemail -imap -server=’mail.server.com’ -user=’user’ -password=pwd
  • List latest 5 mails in a user’s inbox using IMAP:
    • [CLP] rcvemail -imap -server=’mail.server.com’ -user=user -password=pwd -latest=5
  • Display number of emails in user’s inbox:
    • [CLP] rcvemail -server=’mail.server.com’ -user=user -password=pwd -mailcount
  • Read all emails in a users inbox:
    • [CLP] rcvemail -server=’mail.server.com’ -user=user -password=pwd -read=all
  • Detach attachment in the first email in a users inbox:
    • [CLP] rcvemail -server=’mail.server.com’ -user=user -password=pwd -read=1 -detach
  • Save email as PDF:
    • [CLP] rcvemail -server=’mail.server.com’ -user=user -password=pwd -read=1 -pdf
  • Save email as PDF with specified file name:
    • [CLP] rcvemail -server=’mail.server.com’ -user=user -password=pwd -read=1 -pdf=’c:/temp/receivedmail.pdf’
  • List only the sender of email:
    • [CLP] rcvemail -server=’mail.server.com’ -user=user -password=pwd -format=f
  • List the sender and subject of emails:
    • [CLP] rcvemail -server=’mail.server.com’ -user=user -password=pwd -format=fs
  • List and save as CSV email date, sender and subject:
    • [CLP] rcvemail -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:
    • [CLP] rcvemail -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:
    • [CLP] rcvemail -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:
    • [CLP] rcvemail -server=’mail.server.com’ -user=user -password=pwd -search=”FROM CONTAINS somewhere.com” -search=”FROM CONTAINS nowhere.com” -or

See User/Developer Guide how to develop your own add-on commands.

 

 

Share this:

 

Search site

Wordpress Theme from JoomlaShack.com

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.