X

We Value Your Privacy

We and our partners use technology such as cookies on our site to personalise content and ads, provide social media features, and analyse our traffic. Click below to consent to the use of this technology across the web. You can change your mind and change your consent choices at anytime by returning to this site.

Update Consent
DISCOVER
×
Loading ...

How to use mailx to send to multiple addresses

Updated April 17, 2017

Mailx is a Unix console application mail program. It has two major modes: send mode and receive mode. In send mode users can send messages using standard input. The receive mode is more interactive and allows users to read incoming mail and to send mail. Mailx has a number of available options that you can activate using a simple text-editor syntax. To send a message to multiple recipients there are a few steps you must follow.

Loading ...
  1. Begin the mail command using the following syntax: mailx [-s "subject"]. The portion in brackets allows you to enter a subject line for your message. Type your actual subject in the quotation marks in lieu of the word subject.

  2. Enter the email address of your first recipient after the brackets. The command should now read: mailx [-s "subject"] recipient1@provider.com

  3. Enter the email address or addresses of any other recipients you wish to receive the message separated by a space. For example: mailx [-s "subject"] recipient1@provider.com recipient2@provider.com recipient3@provider.com

  4. Key in the body or text of the message after the address line and press "CTRL" and "D" to send it.

Loading ...

About the Author

David Johnston works internationally as a freelance writer and editor in a number of professional fields. He received his bachelor’s degree in English from the University of Colorado at Colorado Springs.

Loading ...