We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37619
    • 79 Posts
    I'm using Revo 2.2.0-pl2 on a GoDaddy server (yuck).

    THE PROBLEM
    I have a Form using FormIt, with the parameter emailFrom set to the field "qc_email". All the data is being sent correctly from the site to the client's email. However, whenever the client hits "Reply", it gets sent back to the email address that's set in the System Setting's emailsender.

    This does not happen when I try to duplicate the error. What is going on?

    THE CODE
    [[!FormIt?
    	&hooks=`spam,FormSave,email,redirect`
    	&emailTpl=`quick-contact-report`
    	&emailTo=`[[+department]]`
    	&emailFrom=`[[+qc_email]]`
    	&emailFromName=`[[+qc_name]]`
    	&emailSubject=`[[++site_name]] - Quick Contact Form Submission`
    	&placeholderPrefix=`qcFI.`
    	&redirectTo=`102`
    	&submitVar=`qcVar`
    	&fsFormTopic=`Quick Contact Form`
    	&validate=`qc_name:required,
    		qc_email:email:required,
    		qc_tel:required,
    		qc_comments:required`
    ]]
    <form enctype="multipart/form-data" id="quickContact" action="[[~[[*id]]]]" method="post">
    	<h4>Have a <span>Question?</span></h4>
    	
    	<input type="hidden" name="nospam:blank" value="" />
    	
    	<fieldset>
    		
    		<p>Items Marked * Are Required</p>
    		
    		[[!+qcFI.validation_error_message]]
    		
    		<label for="qc_name">Name *</label>
    		<span class="error">[[!+qcFI.error.qc_name]]</span>
    		<input id="qc_name" type="text" placeholder="Name *" name="qc_name" value="" />
    		
    		<label for="qc_email">Your Email *</label>
    		<span class="error">[[!+qcFI.error.qc_email]]</span>
    		<input id="qc_email" type="email" placeholder="Email *" name="qc_email" value="" />
    		
    		<label for="department">Choose a Department:</label>
    		<select name="department" id="department">
    			<option value="[email protected]" [[!+qcFI.department:FormItIsSelected=`[email protected]`]]>General</option>
    			<option value="[email protected]" [[!+qcFI.department:FormItIsSelected=`[email protected]`]]>Technical / Engineering</option>
    			<option value="[email protected]" [[!+qcFI.department:FormItIsSelected=`[email protected]`]]>Customer Service / Sales</option>
    			<option value="[email protected]" [[!+qcFI.department:FormItIsSelected=`[email protected]`]]>Accounting</option>
    		</select>
    
    		<label for="qc_tel">Phone *</label>
    		<span class="error">[[!+qcFI.error.qc_tel]]</span>
    		<input id="qc_tel" type="text" placeholder="Phone *" name="qc_tel" value="" />
    
    		<label for="qc_company">Company</label>
    		<input id="qc_company" type="text" placeholder="Company" name="qc_company" value="" />
    
    		<label for="qc_comments">Comment or Questions *</label>
    		<span class="error">[[!+qcFI.error.qc_comments]]</span>
    		<textarea id="qc_comments" name="qc_comments" rows="5" cols="19" placeholder="Comment or Questions *"></textarea>
    		
    		<label for="qc_file">Attach a File:</label>
    		<input type="file" class="input-file" id="qc_file" name="qc_file" size="7" value="[[!+qcFI.file]]" />
    	</fieldset>
    	
    	<input type="hidden" id="qcVar" name="qcVar" class="qcVar" value="qcVar" />
    	<input type="submit" name="submitbtn" class="submit" value="Submit" />
    </form>	
    
      Jean-Marc Buytaert (@jmbuytaert)

      MODX truly is the greatest thing that's ever happened to the Internet.
      • 34109
      • 119 Posts
      I had a similar issue. My fix was to change what you have as qc_email to just email and losing the emailFrom parameter - without it Formit will look for a field called email first. Hope this helps!
        Studio Republic
        http://www.studiorepublic.com
        0845 226 3205
        @christodhunter
        • 37619
        • 79 Posts
        That seems to have done the trick. Thank you Chris!
          Jean-Marc Buytaert (@jmbuytaert)

          MODX truly is the greatest thing that's ever happened to the Internet.
          • 34109
          • 119 Posts
          Excellent - glad I could help!
            Studio Republic
            http://www.studiorepublic.com
            0845 226 3205
            @christodhunter