Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Need mailing list code

by lizziet (Initiate)
on Nov 03, 2003 at 17:54 UTC ( [id://304192]=perlquestion: print w/replies, xml ) Need Help??

lizziet has asked for the wisdom of the Perl Monks concerning the following question:

All hail, oh wise perl monks!

I am a humble web site designer who has a smattering of perl/cgi knowledge. (I usually adapt scripts rather than attempt to build them from scratch)

My client wishes to collect email addresses and use them to mail out a newsletter. Can anyone point me to a script (free, shareware, at a cost -- doesn't matter) that handles this function? I remain humbly in your debt. LizzieT

Replies are listed 'Best First'.
Re: Need mailing list code
by chromatic (Archbishop) on Nov 03, 2003 at 18:11 UTC

    Mail::Bulkmail handles much of what you want to do already. My Mail::SimpleList is a smaller example. You'll have to write a bit of code with either, but they handle the hard technical work (getting double opt-in working is a bit trickier, however).

Re: Need mailing list code
by phydeauxarff (Priest) on Nov 03, 2003 at 18:11 UTC
    This is really an off-topic question but..

    First, there are a plethora of CPAN modules to accomplish the mailing out a newsletter part. I have been using mime::lite for a couple years now and can highly recommend it.

    One thing that troubles me about your question is the statement that your client wishes you to collect the addresses...from where? Do you intend to harvest addresses from the web or another online source and send your mailings out unsolicited?

    If that is what you are being requested to do, I would encourage you to reject the job.

    Not only is sending unsolicited mailings to end users who have not knowingly and willingly established a business relationship with your client considered a serious breach of Internet etiquette, it violates the terms of services of most ISP's and could result in you or your client loosing their service.

      Sorry if my original query was unclear. My client intends to send the newsletter ONLY to people who request to be on her mailing list.

      LizzieT

Re: Need mailing list code
by waswas-fng (Curate) on Nov 03, 2003 at 19:17 UTC
    You could check out Mojo Mail it is written in perl, free and handles most things that a smaller newsletter shop could ever need, including subscription, unsubscription, list management, ...


    -Waswas
Re: Need mailing list code
by TomDLux (Vicar) on Nov 03, 2003 at 22:08 UTC

    Majordomo works well, for small and medium sized lists.

    Unfortunately, it uses a linear search through unsorted list to handle unsubscribe requests, which stops working somewhere before 40,000 subscribers. My solution was to keep the subscriber list sorted, and maintain a list of people requesting to unsubscribe. Once a day, I updated the subscriber list using comm. Since the newsletter only went out once a day, this worked well, and scaled to support 3,000,000 subscribers.

    --
    TTTATCGGTCGTTATATAGATGTTTGCA

      I second the motion for Majordomo. It is quite possibly one of the most widely used Perl programs on the Net, and has been in use for nearly a decade. It is the first package many system administrators think of when they think "Opt-in mailing list." As mentioned before, it isn't really designed for tens of thousands of subscribers, but it is well suited for hundreds or thousands.

      You may read more about it at http://www.greatcircle.com/majordomo/. That site also contains links to its source code (Perl, of course). If I recall, Majordomo was already in use back in the days of Gopher, Archie, Jughead, and a new-fangled thing called the World Wide Web (early days).


      Dave


      "If I had my life to live over again, I'd be a plumber." -- Albert Einstein
Re: Need mailing list code
by batkins (Chaplain) on Nov 03, 2003 at 20:27 UTC
    Siesta is a full-featured Perl mailing list. It's even compatible with Mailman.

    The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows. - Frank Zappa

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://304192]
Approved by TheHobbit
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-24 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found