By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,823 Members | 756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,823 IT Pros & Developers. It's quick & easy.

How to best send email to a low volume list?

P: n/a
I need to maintain a list of subscribers to an email list for a
"newsletter" that will be sent via a web form probably once a month.
I anticipate low numbers--tens to maybe one hundred subscribers at the
most. Just curious what the best way to code this is. Should I just
loop through the addresses and send one-off emails to each, or is it
better to somehow send to every recipient in one shot? One thing I
would like to avoid in the latter scenario is each recipient being
able to see the entire list of recipients. Also don't want to trigger
any kind of spam thing on my web host by sending out too many emails.

Anyway, any tips appreciated.

Thanks,
Chris

Oct 24 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Wed, 2007-10-24 at 16:54 +0000, chris wrote:
I need to maintain a list of subscribers to an email list for a
"newsletter" that will be sent via a web form probably once a month.
I anticipate low numbers--tens to maybe one hundred subscribers at the
most. Just curious what the best way to code this is. Should I just
loop through the addresses and send one-off emails to each, or is it
better to somehow send to every recipient in one shot? One thing I
would like to avoid in the latter scenario is each recipient being
able to see the entire list of recipients. Also don't want to trigger
any kind of spam thing on my web host by sending out too many emails.

Anyway, any tips appreciated.

Thanks,
Chris
Before you reinvent the wheel, you should look into using a mailing list
manager, Mailman for example:

http://www.gnu.org/software/mailman/index.html

Regardless, confirmed double-opt-in should be a requirement as should a
mechanism for subscribers to unsubscribe themselves.

Using a 'list address' as the from address and using bcc addressing will
prevent your recipients from being able to see all the other recipient
addresses.

Oct 24 '07 #2

P: n/a
A mailing list manager is really overkill for what he is trying to do
*IF* he is not maintaining a discussion list. A "newsletter" list
doesn't sound like a discussion list, especially since he wants to hide
the email addresses of the other people.

If you want to manage your mailing list in a mail client like Mozilla
Thunderbird, you can export them in CSV format. You could put some
string in a certain field that would denote that someone is on the
mailing list, and you could compile the email addresses rather easily
and send out a message via the mailto: protocol (which I will use via
the 'open' command available in MacOSX).

import os

subject = '' # note: you will have problems if you insert certain
characters.
body = '' # You are better off simply writing the message subject
and body once your mail client starts up.

to = ''
cc = ''
bcc=','.join("""on*@one.com
tw*@two.com
th***@three.com
fo**@four.com
fi**@five.com""".splitlines())
addresses = ''

headers = 'TO=' + to + '&CC=' + cc + '&BCC=' + bcc
url = 'mailto:' + addresses + '?subject=' + subject + '&' + headers +
'&body=' + body
os.system('open ' + url)
Contact me off list if you would like a little code to help you even
more. I suspect there is a little bug in this code, but the idea is there.


Adam Lanier wrote:
On Wed, 2007-10-24 at 16:54 +0000, chris wrote:
>I need to maintain a list of subscribers to an email list for a
"newsletter" that will be sent via a web form probably once a month.
I anticipate low numbers--tens to maybe one hundred subscribers at the
most. Just curious what the best way to code this is. Should I just
loop through the addresses and send one-off emails to each, or is it
better to somehow send to every recipient in one shot? One thing I
would like to avoid in the latter scenario is each recipient being
able to see the entire list of recipients. Also don't want to trigger
any kind of spam thing on my web host by sending out too many emails.

Anyway, any tips appreciated.

Thanks,
Chris


Before you reinvent the wheel, you should look into using a mailing list
manager, Mailman for example:

http://www.gnu.org/software/mailman/index.html

Regardless, confirmed double-opt-in should be a requirement as should a
mechanism for subscribers to unsubscribe themselves.

Using a 'list address' as the from address and using bcc addressing will
prevent your recipients from being able to see all the other recipient
addresses.


--
Shane Geiger
IT Director
National Council on Economic Education
sg*****@ncee.net | 402-438-8958 | http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy
Oct 25 '07 #3

P: n/a
On Wed, 24 Oct 2007 23:08:14 -0500, Shane Geiger wrote:
A mailing list manager is really overkill for what he is trying to do
*IF* he is not maintaining a discussion list.
It's not overkill at all. Mailman is easy to install (at least on a Red
Hat based Linux system, your mileage may vary elsewhere) and easy to use
*and* for bonus marks it's written in Python.

A "newsletter" list
doesn't sound like a discussion list, especially since he wants to hide
the email addresses of the other people.
There's more to running a mailing list than just sending emails. How do
you handle archives, the invariable complaints of missing newsletters,
requests for subscriptions, unsubscriptions, and temporary "I'll be on
holiday for a month, don't email me until I return" requests? And even if
it is not a discussion list, people expect to be able to write back to
the author/editor of the newsletter.

--
Steven.
Oct 25 '07 #4

P: n/a
On Thu, Oct 25, 2007 at 04:47:51AM -0000, Steven D'Aprano wrote:
On Wed, 24 Oct 2007 23:08:14 -0500, Shane Geiger wrote:
A mailing list manager is really overkill for what he is trying to do
*IF* he is not maintaining a discussion list.
It's not overkill at all. Mailman is easy to install (at least on a Red
Hat based Linux system, your mileage may vary elsewhere) and easy to use
*and* for bonus marks it's written in Python.
There's very little that Mailman is not overkill for. Running as a
daemon and managing its own queue is completely unneccessary; that's
what the MTA is for.

Enemies of Carlotta is also written in Python, except it's written sanely.

http://liw.iki.fi/liw/eoc/ or 'enemies-of-carlotta' in Debian.

Alternatively, SmartList is written as a set of procmail filters;
available from http://procmail.org/ or 'smartlist' in Debian.
A "newsletter" list
doesn't sound like a discussion list, especially since he wants to hide
the email addresses of the other people.
There's more to running a mailing list than just sending emails. How do
you handle archives, the invariable complaints of missing newsletters,
requests for subscriptions, unsubscriptions, and temporary "I'll be on
holiday for a month, don't email me until I return" requests? And even if
it is not a discussion list, people expect to be able to write back to
the author/editor of the newsletter.
Being able to reply to the author/editor is something that has been
possible via email for 25+ years. You don't need a mailing list
manager for it.

--
Benjamin A'Lee :: bm*@subvert.org.uk
http://subvert.org.uk/~bma/
"It is forbidden to kill; therefore all murderers are punished unless they kill
in large numbers and to the sound of trumpets." - Voltaire

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHIJEKEUZDNrttL6ARApUwAJ9ZLuqZVvfLuuNTIm/EI1BUFgLh/gCfeMy2
tezYKLBc2bKz0mv4i0YEQEI=
=SYFo
-----END PGP SIGNATURE-----

Oct 25 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.