<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 07/12/2012 16:35, Rob Lewis wrote:<br>
    </div>
    <blockquote
cite="mid:8F253C31DDD4854FB03ECF22268CAA64025CEA27@jfsmail1.forsythshirt.net"
      type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <meta name="GENERATOR" content="MSHTML 8.00.6001.19328">
      <div><span class="509262316-07122012"><font face="Arial" size="2">Hello
            Everyone, </font></span></div>
      <div><span class="509262316-07122012"></span>&nbsp;</div>
      <div><span class="509262316-07122012"><font face="Arial" size="2">Just
            wanted to say to the developers of this product.&nbsp; Thanks for
            this.&nbsp; Pretty easy to setup, and my users are already
            testing.</font></span></div>
    </blockquote>
    <font size="2"><font face="Arial">Thanks! G<font size="2">lad you li<font
            size="2">ke it. :-)</font></font></font></font><br>
    <blockquote
cite="mid:8F253C31DDD4854FB03ECF22268CAA64025CEA27@jfsmail1.forsythshirt.net"
      type="cite">
      <div><span class="509262316-07122012"></span>&nbsp;</div>
      <div><span class="509262316-07122012"><font face="Arial" size="2">Couple
            of items.&nbsp; </font></span></div>
      <div><span class="509262316-07122012"></span>&nbsp;</div>
      <div><span class="509262316-07122012"><font face="Arial" size="2">First,
            gmail, and yahoo kept flagging emails as junk.&nbsp; Fairly
            certain this was from sendmail inserting received from <a
              moz-do-not-send="true" href="mailto:apache@localhost">apache@localhost</a>.&nbsp;
            I tried several things, and finally gave up, and replaced
            sendmail with postfix.</font></span></div>
    </blockquote>
    <font size="2"><font face="Arial">You can do this with a setting in
        php.ini to say somethi<font size="2">ng similar to<br>
          <font size="2">sendmail_path = "/usr/sbin/sendmail -t -i
            -fdo-not-reply@york.ac.uk"<br>
            <br>
            <font size="2">That simply overrides the default "sendmail"
              command used by the PHP mail() function.</font><br>
          </font></font></font></font>
    <blockquote
cite="mid:8F253C31DDD4854FB03ECF22268CAA64025CEA27@jfsmail1.forsythshirt.net"
      type="cite">
      <div><span class="509262316-07122012"></span> <br>
      </div>
      <div><span class="509262316-07122012"><font face="Arial" size="2">Secondly,
            is there info on what would be required to replace the
            Recaptcha module with an alternative.&nbsp; I much prefer the
            Playthru test from <a moz-do-not-send="true"
              href="http://areyouahuman">http://areyouahuman</a>.</font></span></div>
      <div><span class="509262316-07122012"></span><br>
      </div>
    </blockquote>
    The code to call the recaptcha module is all in
    /opt/zendto/www/{download.php,pickup.php,req.php,verify.php} and
    it's fairly obvious code when you take a look at it. It basically
    just does this:<br>
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $reCaptchaPrivateKey = $theDropbox-&gt;recaptchaPrivateKey();<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($reCaptchaPrivateKey != 'disabled') {<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $resp = recaptcha_check_answer ($reCaptchaPrivateKey,<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $_SERVER["REMOTE_ADDR"],<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $_POST["recaptcha_challenge_field"],<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $_POST["recaptcha_response_field"]);<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (($reCaptchaPrivateKey == 'disabled' || $resp-&gt;is_valid)
    .......<br>
    <br>
    So you just need to replace that with the code to call any CAPTCHA
    of your choice. Put the PHP code for your choice of captcha module
    into recaptchalib.php.<br>
    <br>
    Hopefully that's enough to get you going switching it to use
    something else.<br>
    <pre class="moz-signature" cols="72">Jules

-- 
Jules Field MEng MBCS CITP CEng
email+iMessage: <a class="moz-txt-link-abbreviated" href="mailto:Jules@ecs.soton.ac.uk">Jules@ecs.soton.ac.uk</a>
Twitter: @JulesFM

Senior Tutor, Postmaster
Electronics and Computer Science
University of Southampton SO17 1BJ, UK

'It's in Apple's DNA that technology alone is not enough. It's
 technology married with liberal arts, married with the humanities,
 that yields us the result that makes our hearts sing.' - Steve Jobs
</pre>
  </body>
</html>