SWIFT MAILER を使用して 1000 通のメールを送信する場合:
個人化されていないケース:
$message = Swift_Message::newInstance('Wonderful Subject')
->setFrom(array('john@doe.com' => 'John Doe'))
->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
->setBody('Here is the message itself')
1配列で送信できます。
ただし、パーソナライズされた手紙を送信する必要がある場合
FOREACH ($name as $receiver){
$message = Swift_Message::newInstance('Wonderful Subject')
->setFrom(array('john@doe.com' => 'John Doe'))
->setTo(array($receiver))
->setBody('Here is the message itself')}
内容が違うので、1回に1通のメールをforeachで送らなければならないのでしょうか??その方が効率的でしょうか? 送信された各メールの受信者名と登録解除 ID を指定するだけです。
ご協力ありがとう御座います