• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 894
  • Last Modified:

concat multiple email address to mailx

How do I have multiple address concatenated in mailx command?
0
mahjag
Asked:
mahjag
  • 2
1 Solution
 
woolmilkporcCommented:
mailx -s "subject" rec1@domain.com rec2@domain.com rec3@domain.org < /path/to/body
0
 
mahjagAuthor Commented:
I see a space separator between multiple emails - I will try that now - why is the whole command redirected to reading another path < /path/to/body ? can you clarify what that does?
0
 
woolmilkporcCommented:
This is to get a body from a file into the mail.

You could also do:

echo "This is the body" | mailx -s "subject" rec1@domain.com rec2@domain.com rec3@domain.org
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now