🧡 Skip to main content🔍 Skip to search

A few quick tricks, that will help you to use Command Line Email to its fullest.

Friendly name

It is possible to specify a friendly name in the single argument both for a sender (FROM and REPLYTO) and a recipient (TO and CC). Multiple friendly name formats are supported. Also, it is possible to use the TONAME argument to specify TO and CC recipient's friendly names.

  • febootimail -TO "Firstname Lastname <friendly@example.com>"
  • febootimail -TO "Lastname, Firstname <friendly@example.com>"
  • febootimail -CC ""Firstname Lastname" <friendly@example.com>"
  • febootimail -FROM "friendly@example.com (Lastname, Firstname)"
  • febootimail -REPLYTO "friendly@example.com (Lastname, Firstname (Thirdname))"
febootimail -FROM ""Johnny Mc." <johnny@example.com>" -TO "HR department <ryan@example.com>" -CC ""John, D" <john@example.net>" -BODY "Sending email with friendly names."

Text and quotes

Double quote marks preserve white space characters. Use quotes around parameters such as Text. Also, to send already preformatted text, use USEFILE or HTMLFILE arguments.

  • 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.
febootimail -FROM john@example.com -TO ryan@example.com -TEXT "Example of the mail, which   PRESERVE   white space characters"

SMTP

An outgoing mail server (SMTP) can be specified as a domain name as well as an IP address.

  • febootimail -SMTP smtp.example.com
  • febootimail -SMTP 192.168.0.24
febootimail -FROM john@example.com -TO ryan@example.com -TEXT "How to specify the SMTP server address" -SMTP smtp.example.com

Redirection operators

Capture all console output by using redirection operators > or >>. Also, to make a log file on basic email sending, use the LOG argument.

  • febootimail *other_commands* > overwrite.txt
  • febootimail *other_commands* >> append.txt
febootimail -FROM john@example.com -TO ryan@example.com -TEXT How to capture console -SMTP smtp.example.com >> output.txt

Authentication

If SMTP server authentication is required, use AUTH, USER, and PASS arguments. Usually the AUTH AUTO does the trick · Enable Google App passwords for SMTP

  • febootimail -AUTH AUTO -USER john -PASS *************
  • febootimail -AUTH AUTO -USER john -PASS ************* -SSL
febootimail -FROM john@example.com -TO ryan@example.com -TEXT Authenticate and send the email -SMTP smtp.example.com -AUTH AUTO -USER john -PASS *************

Port

For SSL connections, port 465 is used by default. For regular and TLS connections—port 587.

  • febootimail -PORT 587
  • febootimail -SSL -PORT 464
febootimail -FROM john@example.com -TO ryan@example.com -TEXT Using custom port number -SMTP smtp.example.com -PORT 587

Need assistance?

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