【发布时间】:2011-02-25 10:32:55
【问题描述】:
我需要向我的 5000 名订阅者发送电子邮件。 最好的方法是什么?
1) 使用密件抄送?:
$from_addr = 'myemail@example.com';
$mailing_list = 'sub1@example.com', 'sub2@example.com', 'sub3@example.com0;
$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) 使用 PEAR 邮件队列?
【问题讨论】:
标签: php email list smtp mailing