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

    I habe build a form with the FormIt.
    The field error processing works fine but the eMail is not send.
    Even the redirect do not work.

    What can it be?

    Here ist the Call:
    [[!FormIt? 
    &hooks=`email,redirect` 
    &emailTpl=`tpl.kontakt` 
    &emailTo=`[email protected]` 
    &redirectTo=`6` 
    ]] 
      • 25979
      • 178 Posts
      Try
      [[!FormIt? &hooks=`email,redirect` &emailTpl=`tpl.kontakt` &emailTo=`[email protected]` &redirectTo=`6` ]]

      You may also want to check if dot in tpl.kontakt isn’t the issue. Shouldn’t be but who knows wink
      You can start with the simplest call to check it.
      Be sure to check your error log and if your hoster didn’t blocked mail() function. I believe formIt use that by default. If so configure it to use smtp.

      Hope sth helps.

      mike
        //Why use windows since there is a door?//
        • 8694
        • 61 Posts
        Hi Mike,

        the ame error. Even wehen I try to name the chunk without the dot.
        The error Log says this:

        [2010-09-13 09:37:03] (ERROR @ /var/www/virtual/xxxx/htdocs/core/xpdo/xpdo.class.php : 1668) PHP warning: json_encode() [<a href=’function.json-encode’>function.json-encode</a>]: recursion detected

        Systemsettings:
        PHP Mailer: 2.0.4
        MySQL: 5.0.22
        PHP: 5.2.6-0
          • 3749
          • 24,544 Posts
          Can you post your emailTpl chunk?
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 8694
            • 61 Posts
            Here is the eMail chunk:
            <h1>Bestellung</h1>
            
            <p class="AutoFont">
            Hallo [[+Vorname]] [[+Name]],<br>
            vielen Dank für die Bestellung.
            </p>
            
            <p class="AutoFont"><strong>Sie haben uns folgende Daten übermittelt:</strong></p>
            
            <p class="AutoFont">
            Vorname: [[+Vorname]]<br>
            Name: [[+Name]]<br>
            Strasse: [[+Strasse]]<br>
            PLZ: [[+PLZ]]<br>
            Ort: [[+Ort]]<br>
            E-Mail: [[+email]]<br>
            </p>


            Here ist the Form:
            <p>[[+fi.error.error_message]]</p> 
            <form action="[[~[[*id]]]]" method="post" class="form">  
                <input type="hidden" name="nospam:blank" value="" /> 
                <input type="hidden" name="AGB:required" value="" />
             
                <label for="Name">Name: <span class="error">[[+fi.error.Name]]</span>  
                  <input type="text" name="Name:required" id="Name" value="[[+fi.Name]]" />
                </label>
              
            
                <label for="Vorname">Vorname: <span class="error">[[+fi.error.Vorname]]</span> 
                  <input type="text" name="Vorname:required" id="Vorname" value="[[+fi.Vorname]]" />
                </label>
            
              
            
                <label for="Strasse">Strasse: <span class="error">[[+fi.error.Strasse]]</span> 
                  <input type="text" name="Strasse:required" id="Strasse" value="[[+fi.Strasse]]"/>
                </label>
            
            
                <label for="PLZ">PLZ: <span class="error">[[+fi.error.PLZ]]</span> 
                  <input type="text" name="PLZ:required:maxLength=`5`" id="PLZ" value="[[+fi.PLZ]]" />
                </label>
            
            
                <label for="Ort">Ort: <span class="error">[[+fi.error.Ort]]</span>
                  <input type="text" name="Ort:required" id="Ort" value="[[+fi.Ort]]" />
                </label>
            
            
                <label for="email">E-Mail: <span class="error">[[+fi.error.email]]</span>
                  <input type="text" name="email:email:required" id="email" value="[[+fi.email]]" />
                </label>
            
            
                <label>AGB gelesen: <span class="error">[[+fi.error.AGB]]</span>
                  <input type="checkbox" name="AGB:required" id="AGB" value="1" />
                </label>
            
            
                <label>
                  <input type="image" name="button" id="button" value="" src="template/grafics/button.jpg" />
                </label>
            
            </form>

              • 25979
              • 178 Posts
              shouldn’t button be of submit type?
                //Why use windows since there is a door?//
                • 8694
                • 61 Posts
                No, you can use a normal button or a grafic as button.
                That is not the reason. Because before it was a normal button with the same error.
                  • 25979
                  • 178 Posts
                  maybe you try changing it type to submit and style it with css?

                  just to be sure (in this case css is not needed).
                    //Why use windows since there is a door?//
                    • 8694
                    • 61 Posts
                    Yes this is possible but that is not the reason of the error.
                    No matter what button-sytle I use, formIt do not send and do not redirect.
                      • 25979
                      • 178 Posts
                      Hi, if you use example contact form and snippet call does it work? Maybe it is badly installed?

                      mike
                        //Why use windows since there is a door?//