🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Env�o de Correo

#11872
From: Alberto Cabello S�nchez
Date: Thu, 20 Sep 2001 06:55
48 lines
2217 bytes
Si tu archivo (direcciones.txt) es algo como:
-b direccion1
-b direccion2
-b direccion3
...
puedes hacer simplemente 
mail -s <asunto> `cat direcciones.txt ` <alguna direccion (por ejemplo la
tuya, as� tienes copia)> <ENTER>
escribes tu mensaje y cierras con un punto, as�:
.

Como tu archivo ser� m�s bien as�:
direccion1 
direccion2 
direccion3
...
en lugar de hacer s�lo "cat" tendr�s que arreglarlo un poco:
mail -s <asunto> `cat direcciones.txt | sed -e s/^/"-b  "/ ` <alguna
direccion> <ENTER>
escribes tu mensaje y cierras con un punto, as�:
.
 
A seguir bien.

El Thu, 13 Sep 2001 08:35:08 -0300,   "Pedro Sureda"
<trenque@tl.servicoopsa.com.ar> escribi�:  

>>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
>>
>>


-- 
-------------------------
Alberto Cabello S�nchez
alberto@unex.es
Servicio de Inform�tica
Universidad de Extremadura
924 298 351 - 924 289 352
--------------------------
Debian Woody
sylpheed 0.6.1
==========================
Technical Details
Message-ID: <20010920085524.1fe6b565.alberto@unex.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.59.214.20!news-ge.switch.ch!news.rediris.es!news.unex.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 00:03:18 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.59.214.20!news-ge.switch.ch!news.rediris.es!news.unex.es!not-for-mail
From: Alberto Cabello S�nchez <alberto@unex.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Env�o de Correo
Date: Thu, 20 Sep 2001 08:55:24 +0200
Organization: Universidad de Extremadura
Lines: 48
Message-ID: <20010920085524.1fe6b565.alberto@unex.es>
References: <9nq5kf$gkt$1@kenobi.antakira.com>
NNTP-Posting-Host: marmota.unex.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: emilio.unex.es 1000968778 24156 158.49.4.202 (20 Sep 2001 06:52:58 GMT)
X-Complaints-To: usenet@emilio.unex.es
NNTP-Posting-Date: 20 Sep 2001 06:52:58 GMT
X-Newsreader: Sylpheed version 0.6.1 (GTK+ 1.2.10; i586-pc-linux-gnu)