I\'m currently using SwiftMailer to send out emails to several users (up to 50). I have it set up and working properly, however, I\'m not quite sure how to pull the recipients
I am not quite sure that I got your question right, but here is a way of doing it:
setSubject('Let\'s get together today.')
->setFrom(array('myfrom@domain.com' => 'From Me'))
->setBody('Here is the message itself')
->addPart('Test message being sent!!', 'text/html')
;
$data = mysql_query('SELECT first, last, email FROM users WHERE is_active=1') or die(mysql_error());
while($row = mysql_fetch_assoc($data))
{
$message->addTo($row['email'], $row['first'] . ' ' . $row['last']);
}
$message->batchSend();
?>
I hope that's what you wanted.