Jump to content

Linux/Basic commands/mailx

From Wikiversity

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 or mailx -f (to read old messages)[2]


See also

[edit | edit source]
  1. https://stackoverflow.com/questions/2282506/how-can-i-send-an-email-through-the-unix-mailx-command
  2. https://superuser.com/a/441873