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

    I’ve sed FormIt plenty of times before, and I’ve actually used it on this specific site for the contact area. I’m now trying to use it again on this site (but on a different page), and for some reason, its not sending.

     [[!FormIt?
       &hooks=`spam`
       &emailTpl=`CallbackReport`
       &emailTo=`[email protected]`
       &successMessage=`Thank you. We'll call you back as soon as we can!`
    ]]
    [[!+fi.successMessage:notempty=`
    <p class="form-success">[[!+fi.successMessage]]</p>
    `]]
    [[!+fi.error.error_message:notempty=`
    <p>[[!+fi.error.error_message]]</p>
    `]]
    <form class="form" action="[[~[[*id]]]]" method="post">
        <input name="nospam:blank" type="hidden" />
    <div class="form-field-name">
        <label for="name">
            <span class="red">*</span>Name:
        </label>
        <input id="name" name="name" type="text" value="[[+fi.name]]" />
    <span class="error">[[+fi.error.name]]</span>
    </div>
    
    <div class="form-field-tel">
    <label for="tel">
            *Telephone Number:
        </label>
        <input id="tel" name="tel" type="text" value="[[+fi.tel]]" />
      <span class="error">[[+fi.error.name]]</span>
    </div>
    
    <div class="form-buttons">
        <input class="form-btn" type="submit" value="Send" />
    </div>
    </form>


    I have a chnk for the report template, and the e-mail address I’m sending to here is the same as the one being used on the contact page of the same site (which works as expected)

    Any ideas??
      • 8609
      • 607 Posts
      einsteinsboi Reply #2, 13 years ago
      I think you’re missing the most crucial hook in your call, "email". That’s the one that actually sends the email.

      [[!FormIt?
      &hooks=`spam,email`
      &emailTpl=`CallbackReport`
      &emailTo=`[email protected]`
      &successMessage=`Thank you. We’ll call you back as soon as we can!`
      ]]
        • 21122
        • 153 Posts
        Spot on!

        Thanks Mary