Mass mail using phpmailer

I have a php script which requires phpmailer and I got it to work already but I need to send the email to 3000 persons. How do I do that? I've tried searching over the net but all the examples show only to enumerate the emails addresses. Mine comes from a database with queries. I have the following code :

It's possible, but then again: I'm sure if you send me a regular email there's a good change that will land in my spam too. There are ways to add headers to provide more trustworthy information in the email, so it won't get flagged as easy. But there's always the change it gets flagged. The people who blurt out such statements rarely back it up IMHO.

I'm trying to learn swiftmailer but the problem is it should have arrays for the to and from addresses. I use dreamweaver so when I make queries, it generates its own codes so I'm not sure how I can code $address => $name and loop codes on my own if dreamweaver generates codes like this