I am sending out ~30k email messages.
Each message will have slightly different content.
I have read that using the php mail() function is not a goo
mail()
Outsource it or spend a lot of time with a library. SwiftMailer is a a good choice if you decide to go with a library.
Don't loop with a mail() :)