Mass mail techniques?
Moderator: General Moderators
Mass mail techniques?
I have a PHP/MySQL site already developed. The members of the site belong to an email discussion list. This list is currently being handled by a program called SmartList. However, we keep losing email messages and the web host is not being helpful in resolving the problem.
Because SmartList is poorly documented and supported, I've been considering writing my own email list handler in PHP. It would tie into the members database a lot more naturally than a 3rd party program.
My immediate question is this:
When sending a message to a couple of hundred people, is it better to loop through the list of email addresses and call mail() for each one? Or should I call mail() once for each dozen or so addresses and BCC all those addresses in a single message?
Because SmartList is poorly documented and supported, I've been considering writing my own email list handler in PHP. It would tie into the members database a lot more naturally than a 3rd party program.
My immediate question is this:
When sending a message to a couple of hundred people, is it better to loop through the list of email addresses and call mail() for each one? Or should I call mail() once for each dozen or so addresses and BCC all those addresses in a single message?
you may set Return-path to some custom alias, say bounces@yourdomain.com and then hook up a script to this alias either via procmail or simple .forward file (or virtusertable.conf file if you're using Sendmail).
How do I make the messages appear to be addressed to the mailing list instead of each recipient? If I put the mailing list's name in the "To" header when I distribute it, won't that send the message to the list again, causing it to be resent ad infinitum? The only solution I can think of is to put a custom header in the message and don't distribute the message if that header exists. Is there a simpler way?
If you send a message to, for instance, somegroup@yahoogroups.com, each recipient will get a message addressed to "somegroup@yahoogroups.com", not addressed to them individually. That's what I'm trying to figure out how to do.
Now when a message comes in to somegroup@mywebsite.com, I need to handle that message and distribute it to all the members, but with each copy of the message addressed to "somegroup@mywebsite.com".
Now when a message comes in to somegroup@mywebsite.com, I need to handle that message and distribute it to all the members, but with each copy of the message addressed to "somegroup@mywebsite.com".