Re: Sending lots of emails - 2 choices - choose the best one

From: Date: Sun, 07 Oct 2007 11:47:13 +0000
Subject: Re: Sending lots of emails - 2 choices - choose the best one
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-262892@lists.php.net to get a copy of this message
Martin Zvarík wrote: > Hello-- > I want to send email to 100+ recipients. Two choices I thought of: > > 1) once call mail() and use BCC, but the negative of this method is > that every recipient in BCC has header "To" same (so I used to put my > email in here - not email of one of the recipients). > > 2) several calls to mail() function with each recipient's emal I would be tempted to generate a shell-script with emails and sendmail commands inline, then do exec() on that. Something along these lines: sendmail -oi -f <from> <to> <<XXXX email email email email XXXX sendmail -oi -f <from> <to> <<XXXX email email email email XXXX . . . . . etc. /Per Jessen, Zürich

« previous php.general (#262892) next »