You'll need to specify your server setup and language for specifics,
but the approach is the same regardless of language...

- create a function that sends mail in your preferred language (it
will likely accept the following parameters: from address, to address,
subject, body of email)
- programatically acquire a list of email addresses (presumably from a
database, but possibly a text file or an array)
- loop through your list of email addresses, calling the function each time... 

here's a quickie (untested) example in PHP:

$recipients = array("[EMAIL PROTECTED]","[EMAIL PROTECTED]","[EMAIL 
PROTECTED]","[EMAIL PROTECTED]");
$message        = <<<MSG
I'm some sort of message that
you'd like to span multiple 
lines and send to all sorts 
of folks...
MSG;

foreach($recipients as $recipient){
         mail($recipient, "My Very Important Message", $message);
}

and voila!  you've sent a bunch of messages to people.  

hth,
Stephen

On Tue, 14 Dec 2004 21:10:50 -0600, Zhao <[EMAIL PROTECTED]> wrote:
>   Hello, everyone:
> 
>   I have never encountered the problem to
> send an email to quite a lot receivers.
> 
>   Now I need to do that, I have to send the same email
> to scores of people. Who can tell me the way to do
> that?  Thanks!
> 
>                     Zhao
> 
> ____ ïThe WDVL Discussion List from WDVL.COM ï____
> To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
> use the web interface http://e-newsletters.internet.com/discussionlists.html/
>        Send Your Posts To: [EMAIL PROTECTED]
> To change subscription settings, add a password or view the web interface:
> http://intm-dl.sparklist.com/read/?forum=wdvltalk
> 
> ________________  http://www.wdvl.com  _______________________
> 
> You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 
> To unsubscribe via postal mail, please contact us at:
> Jupitermedia Corp.
> Attn: Discussion List Management
> 475 Park Avenue South
> New York, NY 10016
> 
> Please include the email address which you have been contacted with.
> 
>

____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to