Sunday 01 July 2007 8:47:11 am
Hi guys, Have been playing with the feedback form class from ezwebin 1.2 and have had some trouble trying to get the submitter of the form cc'd on the email. From what I have been able to determine I need to override the content/collectedinfomail/form.tpl file and add an append-block for the variable email_cc_receivers.
{if and(is_set($object.data_map.recipient), $object.data_map.recipient.has_content)}
{set-block scope=root variable=email_receiver}{$object.data_map.recipient.content}{/set-block}
{/if}
{append-block scope=root variable=email_cc_receivers}{$collection.attributes.5.data_text}{/append-block}
As per the code above I have added the append-block, but the required collection attribute is not working. I have tried the code
{append-block scope=root variable=email_cc_receivers}test@domain.com{/append-block}
and the email is sent to the cc as required. Can anyone provide guidance as to how to access the submitted variable from the form for the user's email address? Thanks in advance.
Andrew Duck, Executive Director, Quiqcorp Limited
eZ Certified Developer and Trainer.
Member of the Community Project Board
http://quiqcorp.com | http://twitter.com/andrewduck
|