ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Artem Pastukhov <past@yam.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Шустро помощь нужна!
Date: Mon, 9 Jun 2003 10:35:07 +0400
Message-ID: <200306091035.07644.past@yam.ru> (raw)
In-Reply-To: <658346233.20030609111510@scs-900.ru>

9 Июнь 2003 08:15, Evgeny Yugov написал:
> Здравствуйте All,
>
> Есть список email адресов в файле в столбик... есть тело
> письма... нужно разослать всем юзверям из файла имеющееся тело
> ;) В идеале в поле TO хорошо б ставить майл юзверя...
>
> ps Скриптами знаю что моня сделать... но думаю есть способ
> намного проще.

#!/usr/bi/perl

$message="message.txt";
open(MS , $message) || die " Can't open $message $!";
@message=<MS>;
close MS'
while (<>)
{
s/\n//;
s/\r//;
open (MAIL, "|/usr/bin/mail $_") || die "Can't run mail $!";
print  MAIL @message;
close MAIL;
}

Потом сохраняете файл, например как spamsend.pl   :)
потом chmod +x spamsend.pl

$ spamsend.pl < mails.txt


Примерно так.



-- 
 С уважением,
Артем Пастухов          past(at)yam.ru
 ЯМ Интернешнл         http://www.yam.ru


  reply	other threads:[~2003-06-09  6:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-09  4:15 Evgeny Yugov
2003-06-09  6:35 ` Artem Pastukhov [this message]
2003-06-09  6:58   ` [Comm] Re[2]: " Evgeny Yugov
2003-06-09 16:34 ` [Comm] " Alexey Tourbin
2003-06-10  2:15   ` Evgeny Yugov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200306091035.07644.past@yam.ru \
    --to=past@yam.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git