Hi All,
I’m trying to set the recipients of a contact form using a user-defined global variable so the client can easily change it. However:
{exp:email:contact_form user_recipients="false" recipients="{gv-form-recipient}" charset="utf-8"}
(formy goodness)
{/exp:email:contact_form}This throws a “Your email had no valid recipients” error. Changing from the global variable to the email address works, and printing the global variable as text inside the form also works. I also tried calling it using an embed variable
(to call the form snippet)
{embed="snippet/f-contact" the_recipient="{gv-form-recipient}"}
(form snippet including embed)
{exp:email:contact_form user_recipients="false" recipients="{embed:the_recipient}" charset="utf-8"}
(formy goodness)
{/exp:email:contact_form}The manual page mentions these not working in member profile templates. Should it be working here?
TIA
peace - oli