Command line mail message with postfix in (K)ubuntu


You have installed postfix in your local development machine (sudo apt-get install postfix), and you want to test sending emails from the command line using mail



You would first need to install the mailutils package:

then you can send an email by:

and you can send it by pressing Ctrl+D