また、このBCC方式で1000通のメールを送信しようとしたところ、100通程度の制限だったようです。したがって、これは使用しないでください。代わりに、SwiftMailerが提供するプラグインを使用してみてください。
サンプルコードは次のとおりです。
$mailer = Swift_Mailer::newInstance(
Swift_SmtpTransport::newInstance('smtp.example.org', 25)
);
// Use AntiFlood to re-connect after 100 emails
$mailer->registerPlugin(new Swift_Plugins_AntiFloodPlugin(100));
// And specify a time in seconds to pause for (30 secs)
$mailer->registerPlugin(new Swift_Plugins_AntiFloodPlugin(100, 30));
$content = 'email body'
$message = Swift_Message::newInstance('Email subject')
->setFrom(array('no-reply@email.com'=> 'From me'))
->setBody($content,'text/html');
$emails = array('email1@email.com','email2@email.com','email3@email.com');
foreach($emails as $recipient){
$message->setTo($recipient);
$mailer->send($message);
}
これがより簡単な解決策としてあなたの問題に役立つことを願っています。