The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Pull E-mail address from file, send e-mail DC Heard Shell Programming and Scripting 1 01-28-2008 11:23 PM
to send email to multiple users vishwas.shenoy UNIX for Dummies Questions & Answers 0 01-25-2008 03:00 AM
I am not able to send mail form unix to other mail accounts. chinnigd UNIX for Dummies Questions & Answers 1 04-06-2006 05:31 AM
Using mailx to send email to multiple users. priyaksingh Shell Programming and Scripting 4 02-20-2006 10:37 PM
can not send mail from unix server to company/yahoo mail b5fnpct UNIX for Dummies Questions & Answers 5 11-22-2002 06:24 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-28-2001
Registered User
 

Join Date: Apr 2001
Posts: 17
Unhappy How to send mail to multiple users ???

Hi All,
How to send mails to multiple users using a single mailx command.

Urgently require help

Thanks in advance

Rgds
Arunava
Forum Sponsor
  #2  
Old 05-29-2001
Registered User
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
Code:
mailx -s "Subject" recipient1@whatever.com recipient2@whatever.com < textfile
or

Code:
cat textfile | mailx -s "Subject" recipient1@whatever.com recipient2@whatever.com
or my favorite

Code:
LIST="recipient1@whatever.com recipient2@whatever.com recipient3@whatever.com recipient4@whatever.com"

mailx -s "Subject" $LIST < textfile
or

Code:
echo "This is my message" | mailx -s "Subject" recipient1@whatever.com recipient2@whatever.com
__________________
[url=http://chuckb.1le.net/]My website[/url]
  #3  
Old 05-30-2001
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
you can even go as far as setting up an alias in /etc/aliases

list=foo@y0mama.com, jimbo@y0daddy.com
EOF

then just echo test|mailx list
  #4  
Old 10-16-2002
Registered User
 

Join Date: Jul 2002
Location: Okinawa, Japan
Posts: 3
Smile Thanks to all

This thread was alot of help. Thanks to all that contributed!
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0