Command line email help and knowledge base

Collection of articles provides information on various aspects of using and troubleshooting Command line email utility. Documentation categories covers different issues, starting from the very basics of creating batch files and moving forward to growing complexity of using advanced scripting techniques.

Command line email supports all necessary commands that allow great flexibility on how to send email. Usually you will require a few simple commands: FROM, TO, TEXT, SUBJ, ATTACH, SMTP, AUTH (+USER and PASS) and optionally SSL that ensures connection and data safety.

C:\>febootimail -FROM john.green@sender.com -TO ted@recipient.com -TEXT Sending very simple SSL email from DOS with Word attachment -SUBJ My first email with attachment -ATTACH c:\files\summary.doc -SMTP smtp.example.com -AUTH AUTO -USER john -PASS jg#465@2 -SSL

When sending email from command line, all commands / parameters can be used in any order. It is totally up to you on how to organize command sequence. View complete list of supported email commands.

List of all email commands with brief description. Click on the command to view full details and parameter requirements, including usage examples.

Command + AliasDescription
-SMTP
-SERVER
SMTP server name or IP address. By default, localhost 127.0.0.1 is used.
-PORTSMTP server port number. By default, the port 25 is used.
-TODestination email address or list of recipients, separated by comma or semicolon.
-TONAMEFriendly name of the email recipient.
-TOEACH
-SPLIT
Sending the same email to many recipients at once, yet separate email is delivered to each individual recipient.
-CCCarbon Copy email address or list of recipients, separated by comma or semicolon.
-BCCBlind Carbon Copy email address or list of recipients, separated by comma or semicolon.
-TEXT
-BODY
-MSG
-MESSAGE
Text of the email message.
-ENTER
-CR
Separate email text with line breaks into paragraphs.
-FROMEmail address of the sender.
-FROMNAMESender friendly name.
-SUBJ
-SUBJECT
Subject of a message.
-REPLYTOReply To email address.
-REPLYTONAMEReply To friendly name.
-ATTACH
-FILE
Attachment of the email. Multiple files, file masks and wildcards are supported.
-IGNOREATTACHERRORS
-IAE
Ignore any errors related to email attachments (such as Access denied, Sharing violation, etc.).
-USEFILE
-UF
Take value from a text file. This parameter can be used with any other parameter.
-CONFIG
-CFG
Use predefined parameters from the configuration file.
-AUTHSMTP authentication method.
  • AUTH AUTO (Detect AUTH type automatically)
  • AUTH PLAIN
  • AUTH LOGIN
  • AUTH NTLM
  • AUTH CRAM-MD5
-USER
-USERNAME
SMTP user name.
-PASS
-PASSWORD
SMTP password.
-SSLUse secure connection to SSL enabled SMTP server.
-STARTTLSEstablish secure connection to the server with STARTTLS extension.
-HELOUses a custom greeting text for SMTP server.
-HEADERAdd custom tags to email header.
-NOXMAILERRemove X-Mailer header from the email.
-NOIDRemove Message-ID header.
-MIMEUse MIME encoding.
-HTMLSpecifies that email body is HTML.
-HTMLFILESpecify HTML file as email message. Automatically embeds images.
-TESTHTMLSend test HTML message.
-CHARSETEmail message text encoding.
-PRIORITYEmail priority.
-COMMENTComment of the email.
-ORGANIZATION
-ORG
Organization field of the email.
-PRECEDENCEPrecedence of mass email.
-CONFIRM
-RC
Request recipient to send reading confirmation.
-DIALAuto connect to the Internet using dial-up modem.
-IPBind IP address.
-TIMEOUTSet connection timeout.
-WAITBEFOREAdds delay before mail sending.
-WAITAFTERAdds delay after mail is sent.
-HIDEHides console window immediately.
-QUIET
-Q
Suppress screen output.
-DEBUG
-D
Shows internal variables and mail server responses.
-DEBUGX
-DX
Shows comprehensive information on communication session between Command line email client and SMTP server.
-SAVEEMLSave composed message to .eml file instead of sending it.
-OPENEMLSend message using .eml file.
-LOGLog email sending events.
-LOGSUCCESS
-LS
Log only successfully sent email history.
-LOGFAILURE
-LF
Log only failed email sending attempts.
-RESULT
-POPUP
Displays result in message window.
-BUY
-ORDER
Opens ordering page.
-HOME
-HOMEPAGE
Opens home page.
-DOUPDATE
-LU
Force check for updates.
-DONTUPDATE
-DLU
Suppress update check.
-REGISTER
-R
-REGNAME
Register Command line email from the console.
-ONLINEHELP
-OH
-??
Opens online help.
-HELP
-H
-?
Displays help screen in DOS console.

Note on required parameters. Some commands are mandatory. For example, it is not possible to send email without recipient, and without specifying From address. The last thing required to send email is outgoing email server (by default localhost 127.0.0.1 is used). View simple example:

C:\>febootimail -FROM john@sender.com -TO jack@recipient.com -MSG "Email message using Febooti Command line email. It is easy!"

In most cases you need to specify outgoing mail server address using -SMTP or -SERVER parameter. If server requires authentication, use -AUTH, -USER and -PASS parameters to specify authentication method, username and password, respectively.

C:\>febootimail -FROM john@sender.com -TO jack@recipient.com -MSG "Email message which uses SMTP and AUTH methods to send mail from Windows command prompt." -SMTP outgoing.server.com -USERNAME john -PASSWORD ******** -AUTH AUTO

OpenSSL credit: This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/). This product includes cryptographic software written by Eric Young (eay@cryptsoft.com).

Free trial 15 day trial · Details…
Buy now 30 day MBG · Details…

If you have any questions, please do not hesitate to contact our support team.

© 2001–2017 Febooti Ltd.