We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32645
    • 377 Posts
    Hi.

    In my outgoing email reports, it says at the bottom:


    From,
    [(site_name)]
    Website: [(site_url)]

    But it never converts the placeholders properly and leaves as "[(site_name)]" and "[(site_url)]" respectively.

    I’ve tried including site_name and site_url as hidden variables, but Eform returns an error, presuambly to prevent injection of code.

    How do I get MODX to convert the placeholders [(site_name)] and [(site_url)] into their respective fields?

    Thanks

    ---

    This is a sample;

    // generic form (chunk)
    
    <p class="error">[+validationmessage+]</p>
     
    <form method="post" action="[~[*id*]~]" id="EmailForm" name="EmailForm">
     
    	<fieldset>
    		<h3> Contact Us</h3>
     
    		<input name="formid" type="hidden" value="ContactForm" />
     
    		<label for="cfName">Your name:
    		<p><input name="name" id="cfName" class="text" type="text" eform="Your Name::1:" /></p>
                                  </label>
    
                                <p><input type="submit" name="contact" id="cfContact" class="button" value="Send This Message" /></p>
     
    	</fieldset>
     
    </form>
    


    // generic_report (chunk)
    
    <p>This is a response sent by <b>[+name+]</b> using the feedback form on this website. The details of the message follow below:</p>
     
    <p>Name: [+name+]</p>
    
    <p>
    From: [(site_name)] - [(site_url)]
    </p>
    


    | EDIT |

    I’ve also tried putting: {{site_url}} chunk in my outgoing e-mail digests and the chunk references to the URL, however this also just spits out [(site_name)] and not the actual site name.

    Is there any way to output the site name and site url in outgoing e-mail digest reports?
      • 36416
      • 589 Posts
      Quote from: worchyld at May 06, 2008, 11:32 AM

      Is there any way to output the site name and site url in outgoing e-mail digest reports?

      The latest version of eForm can’t do that, you can try by adding needed custom fields in eformOnBeforeMailSent event.
        • 32645
        • 377 Posts
        Ok. Thank you. I added to the &fields parameter the necesary fields I wanted and its fixed.

        Thanks.