Re: Mailing List, continued
by "Chris Forkey" <borealis(at)auroranet.net>
|
|
Brandon:
If your brave enough to modify the formmail.pl script...
then this should work for a limited number of addresses.
I don't know if there is a limit to this method and it might
get tedious if you have to manage adds/deletes for lots of addressees!
***********Begin**********
1) Use the version 1.9 of the formmail script.
you can download from
http://www.worldwidemart.com/scripts/formmail.shtml
2) go to line 38 -or there abouts- and find @referers =
('domainname.com','xxx.xxx.xx.xx');
2a) Substitute your domain for the initial one; you can also replace the
IP with yours or delete the numbers between the quote like so:
('MyDomain.com',' ')
3) go to line 383 (in sub send_mail routine), line should read:
print MAIL "To: $Config{'recipient'}\n";
3a) change the line to include the addresses you want to send to,
like so:
print MAIL "To: first\(at)address.net, second\(at)address.com,
third\(at)address.biz\n";
**************
*IMPORTANT* you must 'escape' the at (@) symbol in each address
with a backslash \ and include a space after the comma.
**************END**************
That should do it. Of course you need to make sure that line1 references the
right path/version of perl, and that the correct sendmail path is identified
in line32.
As a side note, on line 389, you could also modify the text to read
something
more descriptive like, "Below is the result of your WEBSITE NAME feedback
form...
Have fun!
Cheers,
Chris
----- Original Message -----
From: "Brandon Coughlin" <bcoughlin(at)urx.com>
To: <hwg-techniques(at)hwg.org>
Sent: Friday, February 08, 2002 2:40 AM
Subject: Mailing List, continued
> In my head, what I think I need to do is edit Formmail so that instead of
> sending the results to one address, it reads a text file of email
addresses
> and sends to those addresses. That mailist text file would be managed by
> some type of mailist manager. The mailist manager is the easy part. I
> don't have a clue of how I would edit Formmail to do it's part. This is
> what I am getting stuck on.
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.