We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47319
    • 1 Posts
    I have been looking at solving this this issue much long than I should have. I host several small simple websites for clients on EZPZ Hosting.

    The problem occurs on all sites. but before publishing these sites the issue was not present and the test was done on our developement server in-house.

    The issue I have is that the simple contact form on these sites doesn't send the the FormItAutoResponder email out. We get the email and the redirect works. and I know the FormItAutoResponder snippet is executed but we get no emails. The form redirects to a Thank you page which returns all the form fields correctly.

    Any help would be appreciated.

    The formit call is below:
    [[!Formit?
      &hooks=`recaptcha,spam,email,FormItAutoResponder,redirect`
      &store=`1`
      &emailFrom=`xxx@domain`
      &emailFromName=`Expert Witness - Tony Docherty Website`
      &emailTpl=`EW Enquiry Form - Alert Email`
      &emailTo=`yyy@domain`
      &emailSubject=`TDEW Website Enquiry from [[+ContactName]]`
      &fiarTpl=`EW Enquiry Form - Auto Responder Email`
      &fiarFrom=`yyy@domain`
      &fiarFromName=`Tony Docherty - Expert Witness`
      &fiarToField=`Email`
      &fiarReplyTo=`yyy@domain`
      &fiarReplyToName=`Tony Docherty - Expert Witness`
      &fiarSubject=`Confirmation of receipt for Expert Witness Services by Tony Docherty Enquiry Request`
      &redirectTo=`6`
      &validate=`email:blank,
                 ContactName:required:minLength=^2^,
                 CompanyName:required:minLength=^2^,
                 Telephone:required:minLength=^10^,
                 Email:email:required,
                 Subject:required:stripTags,
                 Message:required:stripTags`]]
    [[!+fi.error_message:notempty=`[[!+fi.error_message]]<br />`]]
    [[!+fi.validation_error_message:notempty=`[[!+fi.validation_error_message]]<br />`]]
    <form id="FormStyle-1" action="[[~[[*id]]]]" method="post">
      <fieldset>
        [[!+fi.error.ContactName:notempty=`<span class="W16 RJT"></span>
        [[!+fi.error.ContactName]]<br />`]]
        <label for="ContactName" class="W16 RJT">Contact Name: </label>
        <input type="text" name="ContactName" id="ContactName" class="W40" value="[[!+fi.ContactName]]" /><br />
        [[!+fi.error.CompanyName:notempty=`<span class="W16 RJT"></span>
        [[!+fi.error.CompanyName]]<br />`]]
        <label for="CompanyName" class="W16 RJT">Company: </label>
        <input type="text" name="CompanyName" id="CompanyName" class="W64" value="[[!+fi.CompanyName]]" /><br />
        [[!+fi.error.Telephone:notempty=`<span class="W16 RJT"></span>
        [[!+fi.error.Telephone]]<br />`]]
        <label for="Telephone" class="RJT W16">Telephone: </label>
        <input type="text" name="Telephone" id="Telephone" class="W64" value="[[!+fi.Telephone]]" /><br />
        [[!+fi.error.Email:notempty=`<span class="W16 RJT"></span>
        [[!+fi.error.Email]]<br />`]]
        <label for="Email" class="RJT W16">Email Address: </label>
        <input type="text" name="Email" id="Email" class="W64" value="[[!+fi.Email]]" /><br />
        [[!+fi.error.Subject:notempty=`<span class="W16 RJT"></span>
        [[!+fi.error.Subject]]<br />`]]
        <label for="Subject" class="RJT W16">Subject: </label>
        <input type="text" name="Subject" id="Subject" class="W40e" value="[[!+fi.Subject]]" /><br />
        <label for="Message">Message: </label>[[!+fi.error.Message:notempty=`[[!+fi.error.Message]]`]]<br />
        <textarea name="Message" id="Message" cols="80" rows="10">[[!+fi.Message]]</textarea><br /><br />
        <label for="PreferredContactMethod" class="W32 RJT">Preferred Contact Method: </label>
        <select name="PreferredContactMethod" id="PreferredContactMethod" class="LJT W44">
          <option value="I would prefer to be contacted by telephone." [[!+fi.PreferredContactMethod:FormItIsSelected=`I would prefer to be contacted by telephone.`]]>I would prefer to be contacted by telephone.</option>
          <option value="I would prefer to be contacted by email." [[!+fi.PreferredContactMethod:FormItIsSelected=`I would prefer to be contacted by email.`]]>I would prefer to be contacted by email.</option>
        </select><br /><br />
        [[!+fi.error.recaptcha:notempty=`[[!+fi.error.recaptcha]]<br />`]]
        [[!+formit.recaptcha_html]]
        <input type="submit" class="CJT W16 H30P FW7 RFO VAC" value="Send Enquiry" />
        <input type="hidden" name="email" value="" />
      </fieldset>
    </form>
    

    The only clues I have and now do suspect it is the basic mail setup is that a standard php mail() function script fails to send email too.

    I also had errors being generated by the form. but have edited the fomitIsSelected and fomItIsChecked snippets to resolve these. I foolishly thought they might be causing the issue. It would be nice if the maintainer actually made these simple changes it must bite a lot of new comers and old timers alike.

    I am new to Modx but do like this project a lot. Thanks for the great CMS system.
    My Modx system is the latest version 2.2.14 and was installed via the softaculous script at the hosting company. The domain DNS is not controlled by this host but the email system is tested and does receive emails.
    [ed. note: ianthompson last edited this post 12 years, 5 months ago.]