how to send mail to multiple recipients
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > how to send mail to multiple recipients




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    how to send mail to multiple recipients  
tony


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-05 10:55 PM

I need to send mail like this

echo test | mail user1@domain.com user2@domain.com

how do I send mail to multiple people? Is this the right syntax?







[ Post a follow-up to this message ]



    Re: how to send mail to multiple recipients  
pbeckhelm@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-05 10:55 PM

Check out the man pages for mail and mailx.  They'll provide you with
all of the syntax and options for each command and will likely answer
all of your questions and (not) fulfill your wildest dreams ;)






[ Post a follow-up to this message ]



    Re: how to send mail to multiple recipients  
Heiner Steven


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-11-05 10:59 PM

tony wrote:
> I need to send mail like this
>
> echo test | mail user1@domain.com user2@domain.com
>
> how do I send mail to multiple people? Is this the right syntax?

while read address
do
echo test | mail "$address"
done < address.list

Heiner
--
___ _
/ __| |_ _____ _____ _ _     Heiner STEVEN <heiner.steven@nexgo.de>
\__ \  _/ -_) V / -_) ' \    Shell Script Programmers: visit
|___/\__\___|\_/\___|_||_|   http://www.shelldorado.com/





[ Post a follow-up to this message ]



    Re: how to send mail to multiple recipients  
jpd


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-11-05 11:00 PM

Begin  <423213c9$0$1089$9b4e6d93@newsread2.arcor-online.net>
On 2005-03-11, Heiner Steven <heiner.steven@nexgo.de> wrote:
> tony wrote: 

man mail appears to affirm that, yes. On my system, at least.

[vbcol=seagreen]
>     while read address
>     do
>         echo test | mail "$address"
>     done < address.list

You can do that, too, of course. Having less bodies in the spool does
seem appealing, but if sending to strangers one may not want to show
everybody every other address in the To: line.

For which case I tend to construct a list of SMTP commands in a file
and feed it to the MTA directly. But before OP tries that, first read
at least rfcs 821 and 822 and consider that we already have more spam
to go round a couple of times over.


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .





[ Post a follow-up to this message ]



    Re: how to send mail to multiple recipients  
HSP


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-12-05 01:55 AM

for in in user1@domain.com user2@domain.com
do
echo test | mail $i
done

hope this help not for spam



"tony" <none@none.com> escribió en el mensaje
news:d0i9rc$f0h$1@news.Stanford.EDU...
>I need to send mail like this
>
> echo test | mail user1@domain.com user2@domain.com
>
> how do I send mail to multiple people? Is this the right syntax?
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:48 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register