Marin Orlic
|
Wednesday 25 May 2005 4:50:43 pm
Hi all, I need to create a feedback form (rather detailed) and send user input by email (html format). My first idea was to user form/process module, but then I found out it doesn't use any template for formatting, but just dumps POST variable data and sends that to email.. So it seems I must use information collectors.. is there any dummer way, I've got something like 40+ inputs on a form - creating a class for all that is a total pain in the ... and anyway there's no need to store the data in CMS, just send it as-is.. Of course, I could probably bypass eZ altogether and use plain PHP, but it's ugly.. Any ideas, please? :)
Thanks, Marin.
|
Ćukasz Serwatka
|
Wednesday 25 May 2005 11:12:36 pm
You can create your own module. More info in documentation. http://ez.no/ez_publish/documentation/development/extensions/module/module_tutorial_part_1
You will have to use ezmail class. lib\ezutils\classes\ezmail.php Using information collectors as you mention is also good way. If you create all inputs then you can edit/format only one tpl to set your own design from html mail (override content/collectedinfomail/form.tpl) Remember to set ContentType=text/html in [MailSettings] in site.ini.append.php
Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog
|