do not implode a list and BCC it all, that will have a number of negative effects on deliverability.
I would agree with using mail() function instead of a library, unless you are sending tens of thousands of mails. Your MTA will most likely be a bigger bottleneck then php's mail() function.
you really shouldnt need much error handling on such a simple script. i think your code could be cut to half as many lines though.
|