<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Riccardo,<br>
    <br>
    I've just discovered that one too. :-(<br>
    <br>
    The problem is that the first email is generated in response to a
    web action, so the web code can work out what the root url of the
    ZendTo server is from the HTTP parameters passed to it. I didn't
    want to have to hard-code the root url into a config file.<br>
    <br>
    However, the reminders are sent via a cron job, which of course
    therefore doesn't know the root url of the ZendTo server as it can't
    work it out.<br>
    <br>
    So as a short-term workaround, you can edit the dropoff_email.tpl
    template and hard-wire the start of the url.<br>
    <br>
    What I'm looking into is possibly having the cron job do a "curl" of
    a URL so the reminders are generated by web-triggered code, which
    can therefore work out the root url.<br>
    But that's actually a waste of time, as for the curl to work, it's
    got to know the url to fetch, which will of course include the root
    url of the server anyway.<br>
    <br>
    The other option is to maintain a file (updated when people access
    the web site) in /var/zendto that contains the calculated root url
    of the server. Then the cron job can just read that file.<br>
    <br>
    Ideally that information would go in the DB, but that would involve
    a schema change. Schema changes are a pain for MySQL users, as they
    have to do it by hand because the web code won't have permission to
    add to the schema. With SQLite it's easy, I can just add to the
    schema dynamically.<br>
    <br>
    Otherwise I'm going to have to force you to put the root url of the
    server into preferences.php or zendto.conf. :-(<br>
    <br>
    Any preference for how I should do it?<br>
    <br>
    Cheers,<br>
    Jules.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 07/03/2017 08:23, tw2006 wrote:<br>
    </div>
    <blockquote
cite="mid:CAGHdwhRMO+Ei1xSOx2kBV5G7P9677Y48gE_4nDo6PoPnffWC-g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi all,
        <div>  i'm on zendto latest release.</div>
        <div>When someone made a dropoff automatically start the email
          to the receipents and all is ok, but when receipent receive a
          remainder about dropoff the link in incorrect due it lost the
          zendto address.</div>
        <div><br>
        </div>
        <div>Example:</div>
        <div>1st email</div>
        <div>[...]</div>
        <div><a moz-do-not-send="true"
href="https://zendto.domain.tld/pickup.php?claimID=3bBSWzExxxxxxxx5&amp;claimPasscode=HPhzHxxxxxxxxCc&amp;emailAddr=email%40mail.com">https://zendto.domain.tld/pickup.php?claimID=3bBSWzExxxxxxxx5&amp;claimPasscode=HPhzHxxxxxxxxCc&amp;emailAddr=email%40mail.com</a><br>
        </div>
        <div>[...]<br>
        </div>
        <div>reminder email:</div>
        <div>[...]<br>
        </div>
        <div> pickup.php?claimID=3bBSWzExxxxxxxx5&amp;claimPasscode=HPhzHxxxxxxxxCc&amp;emailAddr=email%<a
            moz-do-not-send="true" href="http://40mail.com">40mail.com</a><br>
        </div>
        <div>[...]<br>
        </div>
        <div><br>
        </div>
        <div>Instead server url there is a space</div>
        <div><br>
        </div>
        <div>Hints?</div>
        <div>Bye</div>
        <div>Riccardo</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng MBCS CITP CEng


<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
</pre>
  </body>
</html>