tags:

views:

286

answers:

2
+1  A: 

Assuming you add error handling, you appear to have gotten it right. You might want to tack the venue id onto the CSV file name so that you can save a copy of each file (for auditing, or bounces, or if the email system is down, etc).

JPLemme
+1  A: 

I think the biggest thing your missing (if I'm reading this right) is the emailing part. Have a look at Swift Mailer for examples of how to do this.

I install this on each new PHP project to support exactly this.

Mike Crowe
Jeez, I missed how old this was. Ugh...
Mike Crowe
No matter, I hadn't come across Swift Mailer before and it looks handy - thanks!
Johan