ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Email Module Recipients from Channel Entry?

January 25, 2011 11:37am

Subscribe [2]
  • #1 / Jan 25, 2011 11:37am

    I want a registration form in my channel for calendar events so people can sign up for the events. I’ve got everything working the way I want, except I simply cannot get the “recipients=” parameter of the email module to accept an email address from my entry. I need it to function this way so the creator of the entry can specify which email address the registrant’s contact information should be sent to.

    I’m 99% positive that the problem lies in the fact that email addresses are obscured with javascript, so I disabled the automatic linking of email addresses and URLs in my calendar channel, but the email address is still being garbled.

    Is there a way to explicitly disable javascript garbling? Or perhaps you have an idea for another workaround to this issue?

  • #2 / Jan 25, 2011 4:11pm

    So… Impossible?

  • #3 / Jan 25, 2011 5:22pm

    Davor

    114 posts

    Did you try embeding a template with a form, and passing only data in this case email adresses you need to that template?
    Can’t find a doc related with parse order to make a reference, but you can try this:

    Your Entry template *

    {exp:channel:entry channel="xy" ... }
    Your entry info
    ....
    
    {embed="inc/form" myemails="{your-field-with-email}"}
    
    {/exp:channel:entry}

    Your inc/form template

    {exp:email:contact_form recipients="{embed:myemails}" }
    
    form data…
    
    {/exp:email:contact_form}

    *dont know what version of EE you are using, but use weblog/channel tag depending on that.
    This should work, if does pls take a minute to send a feedback.

  • #4 / Jan 25, 2011 5:30pm

    Thank you for the response!

    Unfortunately I have tried this to no avail. The parsing order is correct, but EE still tries to use javascript to garble the email address before it is passed to the sub-template.

    EDIT:
    I have been using this page as a reference for the parsing order:
    http://expressionengine.com/wiki/Parse_Order/

    Using EEv2.1.0 Build: 20100720

  • #5 / Jan 25, 2011 5:33pm

    Davor

    114 posts

    Hm, strange, did you tried putting that field directly in template, out of form, to see if he writes links or pure emails?

  • #6 / Jan 25, 2011 5:49pm

    Okay, suddenly everything works perfectly…

    Is there some kind of delay from the time that you deactivate email and URL conversion and the time to take effect?

  • #7 / Jan 25, 2011 7:05pm

    Davor

    114 posts

    There shouldn’t be, but when something like this happens to me, I try to delete all cache.
    I now everything works fine, admins can close the thread.

  • #8 / Jan 26, 2011 9:47am

    Sue Crocker

    26054 posts

    Thanks for the assist, Davor.

    KTC - closing thread, Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases