We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44922
    • 131 Posts
    Hi,
    We've used FormIt for years - successfully. This is doing my nut!

    The call:
    [[!FormIt? &hooks=`email, FormSave, redirect` 


    also:
    &emailTo=`[[+email]]`


    the form field
    <input type="email" class="sm-form-control" required placeholder="Email*" maxlength="80"  name="email" id="email" value="[[+fi.email]]" />


    The email never fires to [[+email]]. However, the field is saved no problem to FormSave, so there's clearly a placeholder there. The redirect fores ok. And if we change to and hard code the email, then all works. And all the placeholders are being set in the email chunk as well as FormSave.

    Just puzzled. Any ideas, guys?

    FormIt is 3.0.2 and this version is MODX Revolution 2.3.2-pl

      • 32507
      • 142 Posts
      I have similar setup and it works. Only difference is uncached "value" attribute, like this (Don't remember exactly why smiley
      value="[[!+fi.email]]"


      And I have MODX 2.5.8
        • 44922
        • 131 Posts
        Thanks, mtalvenheimo. Tried both cached and uncached sad Still no joy.
          • 48381
          • 21 Posts
          Looks like you are trying to use 'email' to send an email to the person filling out the form.
          For this you should use formitautoresponder
          Try changing the &emailTo to a hard coded email to test if the email hook works.

          I had a problem that the email did not fire until &emailFrom and &emailTo had valid email addresses approved by my hosting server. A [email protected] did not work, I changes to [email protected] which actually exists

          Hope it helps.
          cheers
            • 44922
            • 131 Posts
            I did wonder if it was email address / host related, but of course we're testing with an external SMTP and have hard coding the email to test as mentioned above. I could have sworn we have successfully used
            &emailTo=`[[+email]]`
            in the past, but Agoraa, you could be right.
            Formitautoresponder seems to have had its own issues for us in the past, so I think we'll just hard code a hook. Thanks anyway.