We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25357
    • 92 Posts
    Revo 2.0.4-pl.
    FormIt 1.5.1.

    Site was getting spammed merciless and added a simple challenge field to the form. Fought all morning getting the challenge field to work, finally got it. Awesome.

    Except now it won’t email. Site has functioned fine for months using 2.0.0/Formit 1.2.1, upgraded all today after it stopped emailing. Even this

    [[!FormIt? &hooks=`email,redirect` &emailSubject=`Visitor Inquiry from Your Site` &emailTpl=`largeFormReport` &emailTo=`[email protected]` &redirectTo=`43`]]

    Fails.

    Full tag with the custom validators - all works - except, that is, for the email part. It won’t send email.

    [[!FormIt? &customValidators=`challengeNumber` &validate=`honeypot:blank,challenge:challengeNumber` &hooks=`email,redirect` &emailSubject=`Visitor Inquiry from Your Site` &emailTpl=`largeFormReport` &errTpl=`<li>[[+error]]</li>` &emailTo=`[email protected]` &redirectTo=`43`]]

    honeypot is a blank hidden field. challengeNumber (in response to "what is the sum of three plus four?")

    <?php
    $value = preg_replace(’/[^\w\d]/’,’’,$value);
    $success = (($value==7) or preg_match(’/seven/i’,$value));
    if (!$success) {
    $validator->addError($key,’Enter the sum of three plus seven in the challenge field.’);
    }
    return $success;
    ?>

    Error log is blank. Response page redirect works fine. Errors return to the form fine, for all fields.

    It just won’t email, and it was fine this A.M. Ideas?



      • 28215
      • 4,149 Posts
      Upgrade to FormIt 1.5.2-rc1.

      Then put this after your FormIt call:

      [[!+fi.error_message:notempty=`<p class="error">[[!+fi.error_message]]</p>`]]
      


      That will display debugging information about your email error.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com