cfmail and mass e-mails
Hello. I have a CF application that is used to track membership in our club. There is about 6000 members in our membership database. One of the useful features about the membership database is that it is easy to code a CF application to send e-mails to various people in the database based on various criteria (i.e. position, address, hobbies, etc.).
The application uses the standard cfmail function in a database loop. For the most part it works pretty well.
The problem occurs when someone wants to send an e-mail to "everyone". Sometimes the application on the users side appears to "hang" so the user sends the e-mail again (clicks back and send) which makes people get duplicates.
Also our website hosting company limits the number of e-mails we can send per hour so this gets them mad and they threaten to shut me down. So I am trying to think of ways to change the code.
If I changed the program so that instead of doing a separate cfmail to each address it only collected the e-mail addresses and at the end did on cfmail bcc'ing all the receipts in one e-mail work? So if I was sending to 100 people, instead of sending 100 cfmails, it would only send 1 mail with 100 addresses in it?
Another alternative I was thinking of was that instead of actually sending the email, the CF application would just collect all the e-mail addresses and at the end it would create a "mailto" hyperlink with all the addresses in a BCC that the user would click on that would startup their e-mail client and the addresses would be prefilled and then they could type the e-mail up in their email client and sending the e-mail would be from their computer and not the server.
Looking for any suggestions and/or comments.
Thanks, Dennis
