Tips and tricks

A few quick tricks, that will help you to use Command line email to its fullest.

  • Tip 1: it is possible to specify friendly name in the single parameter both for sender (FROM and REPLYTO) and recipient (TO and CC). Multiple friendly name formats are supported. Also, it is possible to use TONAME parameter to specify TO and CC recipient's friendly name.
    Friendly name syntax:
    • febootimail -TO "Firstname Lastname <friendly@example.com>"
    • febootimail -TO "Lastname, Firstname <friendly@example.com>"
    • febootimail -CC ""Firstname Lastname" <friendly@example.com>"
    • febootimail -CC ""Lastname, Firstname" <friendly@example.com>"
    • febootimail -FROM "friendly@example.com (Lastname, Firstname)"
    • febootimail -REPLYTO "friendly@example.com (Lastname, Firstname (Thirdname))"
C:\>febootimail -FROM ""Johnny Mc." <johnny@example.com>" -TO "HR department <ryan@example.com>" -CC ""John, Doe" <john@email.com>" -BODY "Sending email with friendly names."
  • Tip 2: double quote marks preserve white space characters. Use quotes around parameters such as Text. Also, to send already preformatted text, use USEFILE or HTMLFILE parameters.
    Text and quotes:
    • febootimail -TEXT Email sent with    some extra    spaces.
    • febootimail -TEXT "Email sent with    some extra    spaces."

    Above syntax results in the following:

    • Email sent with some extra spaces.
    • Email sent with    some extra    spaces.
C:\>febootimail -FROM john@example.com -TO ryan@example.com -TEXT "Example of the mail, which   PRESERVE   white space characters"
  • Tip 3: outgoing mail server (SMTP) can be specified as domain name as well as IP address.
    SMTP command syntax:
    • febootimail -SMTP smtp.example.com
    • febootimail -SMTP 192.168.0.25
C:\>febootimail -FROM john@example.com -TO ryan@example.com -TEXT "How to specify SMTP server address" -SMTP smtp.example.com
  • Tip 4: capture all console output by using redirection operators > or >>. Also, to make a log file on basic email sending, use LOG parameter.
    Redirection operators syntax:
    • febootimail *other_commands* > overwrite.txt
    • febootimail *other_commands* >> append.txt
C:\>febootimail -FROM john@example.com -TO ryan@example.com -TEXT How to capture console -SMTP smtp.example.com >> output.txt
  • Tip 5: if SMTP server authentication is required, use AUTH, USER and PASS parameters. Usually the AUTH AUTO does the trick.
    Authentication syntax:
    • febootimail -AUTH AUTO -USER john -PASS *****
C:\>febootimail -FROM john@example.com -TO ryan@example.com -TEXT Authenticate and send the email -SMTP smtp.example.com -AUTH AUTO -USER john -PASS ********
  • Tip 6: for SSL connections, port 465 is used by default. For regular and TLS connections - port 25.
    PORT command syntax:
    • febootimail -PORT 587
    • febootimail -SSL -PORT 464
C:\>febootimail -FROM john@example.com -TO ryan@example.com -TEXT Using custom port number -SMTP smtp.example.com -PORT 587

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

© 2001–2017 Febooti Ltd.