Gossamer Forum
Home : General : Perl Programming :

Mailing list

Quote Reply
Mailing list
Anyone know of a good, simple mailing list written in Perl? Basically I have a database which has the following strucutre (extremly simple):

Code:
CREATE TABLE rd_news (
id smallint(4) DEFAULT '' NOT NULL auto_increment,
name text ,
email text ,
PRIMARY KEY (id),
UNIQUE id (id)
);

And now I need to send out an email to the 1,000 or so entries I have. I would just go ahead and write a loop to just send them out to sendmail - is this OK or am I going to kill the server?

Cheers

- wil
Quote Reply
Re: [Wil] Mailing list In reply to
Other than using a loop how do you think other peoples scripts are going to do it? Wink

Btw...if thats the only table you have what use is the id field?

Im sure I remember you asking this a few weeks ago and Alex replied saying that qmail/sendmail handle the sending so you just need to generate the emails.
Quote Reply
Re: [Paul] Mailing list In reply to
Yeah, I thought that too! I think I'm going crazy.

Ah well, I'll just loop through and send them all then. I'm just nervous about crashing the server, that's all!

What is the purpose of the id column? I have other relational tables with further information about each user.

- wil
Quote Reply
Re: [Wil] Mailing list In reply to
GT::Mail::BulkMail...

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Mailing list In reply to
Actually, we are scrapping BulkMail. It was designed to use a single SMTP connection to send multiple messages, rather then opening sendmail, sending a message, closing sendmail.

However, in practice, if you make sure sendmail/qmail is queing the message rather then delivering it, you'll get faster delivery of messages.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Mailing list In reply to
I'm sold. How can I make sure my qmail is queuing properly? :-)

- wil
Quote Reply
Re: [Wil] Mailing list In reply to
Ooo forgot this one the other day....

You can use something like:

open (MAIL, "| /usr/sbin/sendmail -odq") or die $!;

-odq tells sendmail/qmail to queue the messages.

Look at the -oi and -t switches too.

Then go here:

http://gd.tuwien.ac.at/...r/bulk_mailer.README

Last edited by:

Paul: May 1, 2002, 11:16 AM