Linux has an inbuilt Mail User Agent program called mailx. As the name suggests, it is a console application that is used for sending and receiving emails. The mailx utility is an enhanced version of the mail command. … The mailx command is available from a variety of different packages: bsd-mailx.
How does mailx work in Linux?
mailx is an intelligent mail processing system, which has a command syntax reminiscent of ed with lines replaced by messages. … mailx provides enhanced features for interactive use, such as caching and disconnected operation for IMAP, message threading, scoring, and filtering.
How do I send an email with mailx?
Using the mailx command
- Simple mail. Run the following command, and then mailx would wait for you to enter the message of the email. …
- Take message from a file. …
- Multiple recipients. …
- CC and BCC. …
- Specify From name and address. …
- Specify “Reply-To” address. …
- Attachments. …
- Use external SMTP server.
5 июн. 2020 г.