Best way to send mass email to my subscribers ( BCC or PEAR mail queue ? )
Posted
by xRobot
on Stack Overflow
See other posts from Stack Overflow
or by xRobot
Published on 2010-05-29T09:01:11Z
Indexed on
2010/05/29
9:02 UTC
Read the original article
Hit count: 247
I need to send email to my 5000 subscribers. What is the best way to do this ?
1) By using BCC ?:
$from_addr = '[email protected]';
$mailing_list = '[email protected]', '[email protected]', '[email protected];
$message_subject = 'this is a test';
`$headers = array ("From" => $from_addr,
"Bcc" => $mailing_list,
"Subject" => $message_subject);
$smtp = Mail::factory("smtp", array ('host' => "smtp.example.com",
'auth' => true,
'username' => "xxx",
'password' => "xxx"));
$mail = $smtp->send($email, $headers, $message_body);`
.
2) by using PEAR mail queue ?
© Stack Overflow or respective owner