Moderator’s note: Moved to Modules.
Hello and thanks for reading this.
I am using FreeForm on my website to run my forms. Currently, to send the form to an email address, there is a notify parameter in the FreeForm code as seen here:
{exp:freeform:form form_name="ask_father_tom" required="fname|lname|city|zip|phone|email" notify="[email protected]" template="ask-father-tom" return="pages/thank-you"}My client has requested the ability to change this themselves and modifying the templates directly is not really an option, as they are very non-techy.
What I tried to do was create a new weblog and entry to house the email addresses and set the notify parameter to dynamically pull the email address from the weblog entry. I turned off encoding here:
Admin > Weblog Administration > Weblog Management > Edit Preferences > Automatically turn URLs and email addresses into links
…and this is what my code looks like:
{exp:freeform:form form_name="ask_father_tom" required="fname|lname|city|zip|phone|email" notify="
{exp:weblog:entries weblog="forms" url_title="forms"}
{fe-tom}
{/exp:weblog:entries}"
template="ask-father-tom" return="pages/thank-you"}I tested the nested code (everything between the quotes after notify) here to verify it is pulling the email address as plain text: http://www.cammonline.org/index.php?/pages/test
When I try and submit the form, the email is never received. My question is how do I get that string (email address(es)) in the notify parameter correctly? Is my nesting syntax correct?
Thanks in advance!
Scotty
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.