I need to send email to my 5000 subscribers. What is the best way to do this ?
1) BCC kullanarak?:
$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) ARMUT posta kuyruğunu kullanarak?