Linux/Basic commands/mailx
Appearance
< Linux | Basic commands
Mailx command allows to read or send email from command line.
Examples
[edit | edit source]- Sending and email[1]:
echo "Hello world" | mailx -s "My first mail message using mailx command line" localusername@localhost
- Reading emails:
mailx
ormailx -f
(to read old messages)[2]