Re: [willydoit] Mass enquiry form
Hi,
That first piece of code I posted would come after you have the normal header code to connect to CMS Builder. Also, before using that piece of code, you'll need a getRecords() call that will retrieve all of the advertiser records that you want to send the email to. In the code example, it assumes that the variable you're storing your advertiser records in a variable called $advertiserRecords.
The CMS Builder function sendMessage() just sends an email, it doesn't create a form for processing emails. The "to" option does allow for mulitple addresses, which we get in the first code snippet. You'll need to create your own form that will submit to a page that has this code on it.
There is no built in Captcha security with CMS Builder. You can always integrate in your own captcha script intto your form and add it in as part of your normal error checking.
Give this a try. If you run into any problems, let us know and attach the code you have so far. We may be able to point you in the right direction.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/