We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33017
    • 13 Posts
    Hi there, I have the last formit (4 jan.) and this in my template. It it however not sending mail to my mail (no action and no error message).

    Is there anything I can do ?? Any configuration mail in revo beta 5 ?

    Thanks



    <p>[[FormIt?
    &amp;hooks=`email`
    emailSubject=`Demande provenant du site web`&amp;emailTpl=`myEmailChunk`
    &amp;emailTo=`[email protected]`
    ]]

    </p><h1>Contactez-nous pour une estimation gratuite!</h1>

    <p>[[+fi.error.error_message]]</p>

    <form action="[[~[[*id]]]]" method="post" class="form">
    <input name="nospam:blank" value="" type="hidden">

    <label for="name">
    Name:
    <span class="error">[[+fi.error.name]]</span>
    </label>
    <input name="name:required" id="name" value="[[+fi.name]]" type="text">

    <label for="email">
    Email:
    <span class="error">[[+fi.error.email]]</span>
    </label>
    <input name="email:email:required" id="email" value="[[+fi.email]]" type="text">

    <label for="subject">
    Subject:
    <span class="error">[[+fi.error.subject]]</span>
    </label>
    <input name="subject:required" id="subject" value="[[+fi.subject]]" type="text">

    <label for="text">
    Message:
    <span class="error">[[+fi.error.text]]</span>
    </label>
    <textarea name="text:required:stripTags" id="text" cols="55" rows="7">[[+fi.text]]</textarea>

    <br class="clear">

    <div class="form-buttons">
    <input value="Send Contact Inquiry" type="submit">
    </div>
    </form>



      • 28215
      • 4,149 Posts
      For one, your FormIt call is wrong. You have a missing ampersand, you should be using & instead of &amp, and you can make FormIt uncached:

      [[FormIt?
         &hooks=`email`
         emailSubject=`Demande provenant du site web`&emailTpl=`myEmailChunk`
         &emailTo=`[email protected]`
      ]]
      


      should be:

      [[!FormIt?
         &hooks=`email`
         &emailSubject=`Demande provenant du site web`
         &emailTpl=`myEmailChunk`
         &emailTo=`[email protected]`
      ]]
      
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 33017
        • 13 Posts
        Ok now with your call, it tells me " An error occurred while trying to send the email. " in the placeholder error.

        Is there any configuration for the mail or something?

        I have modx evo with eform on another domain on same server and working great without config..
          • 33017
          • 13 Posts
          Where’s the modx communauty to help a fellow modx newbie smiley
            • 3749
            • 24,544 Posts
            Are you sure that the mail() function works on your host? That general mail failure message usually means that it is disabled or there is no mail server. If so, you may have to use SMTP.
              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
              • 33017
              • 13 Posts
              Yes it’s working, i have many other things than FormIt to send mail but for revolution it looks like its the only one..

              Where is the configuration in Revo?

              Thanks I need it asap if possible smiley
                • 3749
                • 24,544 Posts
                SPForm will also send e-mail in Revo.

                For Formit, I don’t have a mail server on localhost so I can’t test it, although I did get it to work with SMTP. AFAIK, all you should need is this:

                [[!FormIt?
                &hooks=`email`
                &emailTpl=`myEmailChunk`
                &emailTo=`[email protected]`
                ]]
                  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
                  • 33017
                  • 13 Posts
                  Even with this call it doesnt work
                  "An error occurred while trying to send the email. "

                  I don’t find SPForm anywhere in the Package MAnager to download.. do you see it??
                    • 3749
                    • 24,544 Posts
                    I see SPForm 3.0.9 beta 1 in one of my installs, but not in another.

                    I think a new transport package needs to be created for it because of some changes in Package Management. I’ll look into it when I get a chance.

                      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
                      • 33017
                      • 13 Posts
                      Ok looking forward to it... do you have the package in a manual format instead ? which i could download and install myself


                      thanks bob