🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #11874

Re: Envío de Correo

#11874
From: gerard farras
Date: Fri, 21 Sep 2001 00:15
25 lines
1770 bytes
Pedro Sureda wrote:

> Necesito saber como  env�o un correo con el comando mail
> yo tengo un archivo txt con las direcciones a las que quiero
> mandar (ser�a para poder mandarle a todos)
> 
> mail -S (no se )
> desde ya gracias
> 
> 
> 
Puedes hacer un shell script que te lo haga.
Solo es un "proof of concept" :

        #!/bin/bash
        LINIA=`wc -l destinatarios.txt | awk ' { print $1 } ' `
        COUNTER=0
        while [ COUNTER -lt $LINIA ] ; do
                DESTINATARIO=`head -$COUNTER destinatarios.txt | tail -1`
                cat mail.txt | mail $DESTINATARIO
                let COUNTER=COUNTER+1
        done

Ojo! Esto es una idea! SEGURO que no funciona!
Aprende por tu mismo! No copies! S� creativo!
Technical Details
Message-ID: <9odc2o$725$1@news.wanadoo.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!not-for-mail
References: <9nq5kf$gkt$1@kenobi.antakira.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,cdc45869583e3ffb
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-09-20 11:26:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!not-for-mail
From: gerard farras <gerard.farras@campus.uab.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Envío de Correo
Date: Thu, 20 Sep 2001 20:15:10 -0400
Organization: Wanadoo
Lines: 28
Message-ID: <9odc2o$725$1@news.wanadoo.es>
References: <9nq5kf$gkt$1@kenobi.antakira.com>
NNTP-Posting-Host: 62-36-160-251.dialup.uni2.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
X-Trace: news.wanadoo.es 1001010073 7237 62.36.160.251 (20 Sep 2001 18:21:13 GMT)
X-Complaints-To: usenet@wanadoo.es
NNTP-Posting-Date: Thu, 20 Sep 2001 18:21:13 +0000 (UTC)
User-Agent: KNode/0.4