We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20954
    • 4 Posts
    Hi, i’m using the latest versions available right now and it’s rather odd but it keep on giving me an error (I get the same error with the SMTP confs).

    It keep on telling me that I need to provide a recipient email (I assumed it’s talking about the &emailTo)
    But I’m providing the field.
    [[!FormIt?  
       &hooks=`email`    
       &emailTpl=`myEmailChunk`  
       &emailTo=`[email protected]`    
    ]]


    This is the exacte error I get in the log file.
    [2010-08-22 14:09:00] (ERROR @ /index.php) You must provide an email address to send to.


    You guys have any idea on how I can fix this problem ?
      • 17499 ☆ A M B ☆
      • 872 Posts
      Are you testing formIt on a local install?
      Have you checked if your php.ini files is correctly set to send emails?
        • 20954
        • 4 Posts
        I’m not local. I looked up my phpini() and everything seem to be fine. But just to be 100% certain, I tried the mail() and imap_mail() function and they worked.
          • 1778
          • 659 Posts
          Do you have an emailChunk called "myEmailChunk" ? If not, I guess it can be the source of your problem...

          Hope this helps
          Cheers
            • 20954
            • 4 Posts
            Could of, but right now I’m using the same one provided by the documentation.
            This is the Formit Email Chunk.  
              
            <br />[[+name]] ([[+email]]) Wrote: <br />  
              
            [[+text]] ​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
              • 20954
              • 4 Posts
              I can’t figure out what I’m doing wrong.

              Any of you have an idea on how I could debug that ?

              Version of MODx: MODx Revolution 2.0.0-pl Traditional 
              Server OS: Linux Centos 5.5
              Server Version: Apache 2.3.5
              PHP Version: PHP Version 5.2.13 (phpini() http://www.franktats.com/info.php)
              FormIt Version: 1.1.7 pl