We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28626
    • 87 Posts
    In the log I see this:
    [2010-10-19 11:40:47] (ERROR @ /index.php) You must provide an email address to send to

    I did a test to see if mail() is working and it works fine

    In the emailTo is my emailadres yet it keeps asking for an email address to send to???? I moved everything from my local server to an online host and again the same problem.

    [[!FormIt?
    &hooks=`email,redirect`
    &submitVar=`emailbtn`
    &emailTpl=`MyEmailChunk`
    &emailTo=`[email protected]`
    &store=`yes`
    &redirectTo=`409`
    &validate=`name:required,
    email:email:required,
    subject:required,
    text:required:stripTags

    ]]
    <p>[[+fi.error.error_message]]</p>
    <form class="form" action="[[~[[*id]]]]" method="post">
    <input name="nospam:blank" type="hidden" />

    <label for="name">
    Naam:
    <span class="error">[[+fi.error.name]]</span>
    </label>
    <input id="name" name="name:required" type="text" value="[[+fi.name]]" />
    <br class="clear" />
    <label for="email">
    E-mail:
    <span class="error">[[+fi.error.email]]</span>
    </label>
    <input id="email" name="email:email:required" type="text" value="[[+fi.email]]" />
    <br class="clear" />
    <label for="subject">
    Onderwerp:
    <span class="error">[[+fi.error.subject]]</span>
    </label>
    <input id="subject" name="subject:required" type="text" value="[[+fi.subject]]" />
    <br class="clear" />
    <label for="text">
    Boodschap:
    <span class="error">[[+fi.error.text]]</span>
    </label>
    <textarea id="text" cols="55" rows="7" name="text:required:stripTags">[[+fi.text]]</textarea>
    <br class="clear" />
    <div class="form-buttons">
    <input type="submit" name="emailbtn" value="Verzenden" />
    </div>
    </form>
    <br class="clear" />
      • 28215
      • 4,149 Posts
      splittingred Reply #2, 16 years ago
      What version of FormIt are you using?
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 28626
        • 87 Posts
        the latest version of FormIt is what I’m using, I checked yesterday to see if there was an update.


        • PHP Version 5.2.10
          Apache/2.2.12
          MySQL 5.1.37
          PDO MySQL 5.1.37


          • 28626
          • 87 Posts
          I’ve updated to the latest version and the error message in the logfile is gone, however the email is not delivered not to the sender nor to the receiver.