Article View: pl.comp.lang.perl
Article #184Re: Mail z html via perl ?
From: Bart CZARnobyl
Date: Sat, 19 Apr 1997 13:18
Date: Sat, 19 Apr 1997 13:18
26 lines
1463 bytes
1463 bytes
Marek Zurowicz (eizurowi@cyf-kr.edu.pl) wrote:
: Czy ktos moze zna rozwiazanie problemu wysylania email z Perla ?
: Potrzebuje zrobic strone www z ktorej mozna zasubskrybowac
: kankretna 'mailing list'
: klient wpisuje swoj email, naciska submit i .....
zalozywszy ze w foremce sa pola tekstowe: email, pole1, pole2, to
wywolywany skrypt moze byc taki...
------------------------------------
#!/usr/bin/perl -w
use CGI qw(standard);
$q=new CGI;
$email=$q->param('email');
open(M, "| mail $email -s 'Gosc wpisal na stronie'");
print M, "Pole1: ".$q->param('pole1');
print M, "Pole2: ".$q->param('pole2');
close(M);
------------------------------------------------
--
Bartek Czardybon
http://www.silesia.pik-net.pl/~czar
Technical Details
Message-ID:
<lngaj5.rff.ln@ondraszek-gw.mak.polsl.gliwice.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!news.nask.pl!o1.mak.polsl.gliwice.pl!not-for-mailReferences:
<33539E17.5FF1@cyf-kr.edu.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!news.nask.pl!o1.mak.polsl.gliwice.pl!not-for-mail From: czar@o1.mak.polsl.gliwice.pl (Bart CZARnobyl) Newsgroups: pl.comp.lang.perl,pl.comp.www Subject: Re: Mail z html via perl ? Followup-To: pl.comp.lang.perl,pl.comp.www Date: Sat, 19 Apr 1997 15:18:44 +0200 Organization: Public NewsServer at NASK N.O.C. Lines: 26 Message-ID: <lngaj5.rff.ln@ondraszek-gw.mak.polsl.gliwice.pl> References: <33539E17.5FF1@cyf-kr.edu.pl> NNTP-Posting-Host: ondraszek-gw.mak.polsl.gliwice.pl X-Newsreader: TIN [UNIX 1.3 BETA-950824-16colors PL0] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit