|
Home > Archive > Unix administration > September 2007 > how to email multiple recipients
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
how to email multiple recipients
|
|
| nobody 2007-09-07, 1:32 pm |
| this might be a easy question but i got after i run this command
command | mail user@domain.com
this works
but command | mail user1@domain.com user2@domain.com
does not work
any idea?
| |
| Michael Vilain 2007-09-07, 1:32 pm |
| In article <fbs2lb$kc4$1@news.Stanford.EDU>,
"nobody" <nobody@nobody.com> wrote:
> this might be a easy question but i got after i run this command
>
> command | mail user@domain.com
>
> this works
>
> but command | mail user1@domain.com user2@domain.com
>
> does not work
>
> any idea?
try
command | mail "user1@domain.com user2@domain.com"
--
DeeDee, don't press that button! DeeDee! NO! Dee...
| |
| Doug Freyburger 2007-09-07, 7:36 pm |
| "nobody" <nob...@nobody.com> wrote:
>
> this might be a easy question but i got after i run this command
>
> command | mail u...@domain.com
>
> this works
>
> but command | mail us...@domain.com us...@domain.com
>
> does not work
>
> any idea?
I use mailx instead of mailx and send to either space separated
or comma separated lists.
| |
| Chris F.A. Johnson 2007-09-07, 7:36 pm |
| On 2007-09-07, nobody wrote:
> this might be a easy question but i got after i run this command
>
> command | mail user@domain.com
>
> this works
>
> but command | mail user1@domain.com user2@domain.com
>
> does not work
What does "does not work" mean? What does happen?
Do you get any error messages? IF so, post them.
That command would work with every version of mail I have seen,
though sometimes the command would be mailx rather than mail.
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
|
|
|
|
|