command line email utility - Tips & Tricks

This page contains various Tips and Tricks for Febooti Command line email (febootimail) to help you use it to its fullest.

  • Tip & Trick 1: friendly name for sender (FROM, REPLYTO) and for recipients (TO, CC, BCC) in single parameter. Also, it is possible to use TONAME parameter to specify TO and CC recipient's friendly name.
    Friendly name syntax for FROM, REPLYTO, TO, CC and BCC recipients:
    • febootimail -TO "Firstname Lastname <friendly@email.com>"
    • febootimail -TO "Lastname, Firstname <friendly@email.com>"
    • febootimail -CC ""Firstname Lastname" <friendly@email.com>"
    • febootimail -CC ""Lastname, Firstname" <friendly@email.com>"
    • febootimail -BCC "friendly@email.com (Firstname Lastname)"
    • febootimail -FROM "friendly@email.com (Lastname, Firstname)"
    • febootimail -REPLYTO "friendly@email.com (Lastname, Firstname (Thirdname))"
C:\>febootimail -FROM ""Johnny M." <johnny@sender.com>" -TO "Mail department <cmd@dos-mail.com>" -BCC "emails@dos-mail.com (Support department)" -CC ""John, Doe" <john@email.com>" -BODY "Send email by using friendly e-mail names."
  • Tip & Trick 2: double quote marks. To preserve white space characters, use quotes around text. Also, to send already preformatted text, use USEFILE and / or HTMLFILE parameters.
    Command line email -TEXT input syntax:
    • febootimail -TEXT Email sent with    some extra    spaces.
    • febootimail -TEXT "Email sent with    some extra    spaces."

    By using above Febooti Command line email syntax, recipient will receive following email text, respectivelly:

    • Email sent with some extra spaces.
    • Email sent with    some extra    spaces.
C:\>febootimail -FROM ""Johnny M." <johnny@sender.com>" -TO "Mail department <cmd@dos-mail.com>" -TEXT "Example of DOS command line email, which   PRESERVE   white space characters!"
  • Tip & Trick 3: outgoing mail server (SMTP) domain name as well as IP Address Notation.
    SMTP command syntax:
    • febootimail -SMTP smtp.sender.com
    • febootimail -SMTP 10.124.1.86
C:\>febootimail -FROM ""Johnny M." <johnny@sender.com>" -TO "Mail department <cmd@dos-mail.com>" -TEXT "DOS email uses SMTP server" -SMTP outgoing.email.server.com
  • Tip & Trick 4: log all text from console to file by using redirection operators > or >>. Also, to make a record file on basic email sending processes, use LOG parameter.
    Redirection operators syntax:
    • febootimail *other_commands* > rewrite-log.txt
    • febootimail *other_commands* >> append-log.txt
C:\>febootimail -FROM ""Johnny M." <johnny@sender.com>" -TO "Mail department <cmd@dos-mail.com>" -TEXT "DOS email uses SMTP server" -SMTP outgoing.email.server.com >> append-log.txt
  • Tip & Trick 5: if SMTP server authentication is required, use -AUTH, -USER and -PASS parameters.
    Authentication syntax:
    • febootimail -AUTH AUTO -USER ***** -PASS *****
C:\>febootimail -FROM ""Johnny M." <johnny@sender.com>" -TO "Mail department <cmd@dos-mail.com>" -TEXT "DOS email uses SMTP server" -SMTP smtp.server.com -AUTH AUTO -USER john -PASS ********
  • Tip & Trick 6: for SSL enabled connections, port 465 is used by default. For regular and TLS connections - port 25.
    PORT command syntax:
    • febootimail -PORT 24
    • febootimail -SSL -PORT 464
C:\>febootimail -FROM ""Johnny M." <johnny@sender.com>" -TO "Mail department <cmd@dos-mail.com>" -TEXT "DOS email uses SMTP server" -SMTP smtp.server.com -PORT 24

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: January 21, 2013