sending email from command line - advanced example

Febooti Command line email is very flexible email sending tool - it is possible to send both simple and content / syntax rich (advanced) emails. There is no any limit on how to use mailer commands and their order. To make it even more flexible and maintainable, use -CONFIG parameter.

Example: send advanced email.

C:\>febootimail -SMTP smtp.server.com -PORT 25 -TO "Department of Information <cmd@dos-mail.com>" -CC "Febooti <cmd@dos-email.com>" -BCC boss@sender.com -FROM johnny@sender.com -FROMNAME "Johnny M" -TEXT "Alternate text for e-mail clients that do not support HTML e-mails" -SUBJ "Subject of the message" -REPLYTO sales@sender.com -REPLYTONAME "sender.com Sales Department" -ATTACH MyDocument.doc -ATTACH c:\mailer\images\note.jpg -CHARSET Windows-1250 -PRIORITY HIGHEST -COMMENT "Comment of the e-mail message" -ORG "sender.com Inc." -AUTH PLAIN -USER john17$ -PASS ****** -HTMLFILE email.html -TIMEOUT 25 -QUIET -POPUP

The following parameters (and their values) are used in the above example:

  • SMTP smtp.server.com to specify outgoing email SMTP (Simple Mail Transfer Protocol) server.
  • PORT 25 to specify SMTP server port.
  • TO "Department of Information <cmd@dos-mail.com>" to specify recipient address and friendly name.
  • CC "Febooti <cmd@dos-email.com>" to specify Carbon Copy recipient and frienly name.
  • BCC boss@sender.com to specify Blind Carbon Copy recipient.
  • FROM johnny@sender.com to specify sender email address.
  • FROMNAME "Johnny M" to specify email sender frienly name.
  • TEXT "Alternate text for e-mail clients that do not support HTML e-mails" to specify email alternate text.
  • SUBJ "Subject of the message" to specify email subject.
  • REPLYTO sales@sender.com to specify email reply address.
  • REPLYTONAME "sender.com Sales Department" to specify email reply address friendly name.
  • ATTACH MyDocument.doc to specify email attachment from current folder.
  • ATTACH c:\mailer\images\note.jpg to specify email attachment from absolute path.
  • CHARSET Windows-1250 to set email encoding.
  • PRIORITY HIGHEST to set email priority.
  • COMMENT "Comment of the e-mail message" to specify email comment.
  • ORG "sender.com Inc." to specify organization of email sender.
  • AUTH PLAIN to specify SMTP server authentication type.
  • USER john17$ to specify SMTP server user name.
  • PASS ****** to specify SMTP server password.
  • HTMLFILE email.html to specify HTML file as HTML email message.
  • TIMEOUT 25 to set SMTP server timeout.
  • QUIET to suppress command line email screen output.
  • POPUP to display popup window with information whether command line e-mail was successfully sent or not.
Additional Command line email notes and resources:

Please do not hesitate to contact our support department with any possible further questions or to solve practical issues connected with Command line email.

Copyright © 2001-2013 Febooti Software. All rights reserved. Last updated: April 28, 2007