<html><head>

<meta name="Generator" content="Novell Groupwise Client (Version 14.2.1  Build: 124440)">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body style="font: 10pt/normal Segoe UI; font-size-adjust: none; font-stretch: normal;"><div class="GroupWiseMessageBody" id="GroupWiseSection_1480349209000_kle@msktd.com_1FEF159614D20000B1ED8700B3004500_"><div>Jules,</div><div>I'm on 4.12 and my NSSDropbox.php has the code you provide below, but I still have the problem Dale mentioned.&nbsp; If an employee at my firm creates a drop off and the recipient has an auto-reply active on their email, the email is sent to an "admin" account rather than the employee who created the drop-off.&nbsp; Looking at the headers of an email sent from my zend.to install, the "From:" is the address defined in zendto.conf and the "Reply-to:" is the user.&nbsp; Is there something I am missing or how do I make all replies to ZendTo notification emails go back to the user who dropped off the file?&nbsp; Or at least do this for users who are employees of my company?<br></div><span id="GWSignatureSent" style="padding-right: 0px; padding-left: 0px; margin-bottom: 5px; display: block;"><span style="display: block;"><br><span style="font-size: 10pt; display: inline-block; -ms-word-wrap: normal;">
<div><div style='font: 13.33px/normal "Open Sans", sans-serif; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;'><font color="#000000" face="Arial"><strong>Ken Etter</strong>, System Administrator</font></div><div style='font: 13.33px/normal "Open Sans", sans-serif; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;'><font color="#00abe2" face="Arial">Architectural Group</font></div><div style='font: 13.33px/normal "Open Sans", sans-serif; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;'><font color="#000000" face="Arial">260.432.9337</font><font color="#000000" face="Arial"><span class="Apple-converted-space">&nbsp;</span>|<span class="Apple-converted-space">&nbsp;</span></font><a style="border: currentColor; border-image: none; color: rgb(0, 0, 0); text-decoration: none;" href="http://msktd.com/"><font color="#000000" face="Arial">msktd.com</font></a></div><br style='font: 13.33px/normal "Open Sans", sans-serif; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;'><div style='font: 13.33px/normal "Open Sans", sans-serif; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;'><a style="border: currentColor; border-image: none; color: rgb(0, 0, 0); text-decoration: none;" href="http://msktd.com/"><img style="border: currentColor; border-image: none;" src="cid:FUASFSVHLPPP.IMAGE_45.png"></a></div><br></div></span></span></span><span style="margin-bottom: 5px; display: block;"><br></span>
  
    
  
  <div class="GroupWiseMessageBody" id="GroupWiseSection_1480349208000_kle@msktd.com_1FEF159614D20000B1ED8700B3004500_"><span class="GroupwiseReplyHeader">&gt;&gt;&gt; Jules &lt;Jules@zend.to&gt; 11/23/2016 11:30 AM &gt;&gt;&gt;<br></span><div><span style="background-color: rgb(255, 255, 255);" text="#000000" bgcolor="#FFFFFF">&gt;
    Dale,<div><br></div><div>
    </div><div>
    The answer to your question about the address the email appears to
    come from may also imply that you have an old version of the
    "deliverEmail" function in /opt/zendto/lib/NSSDropbox.php.</div><div>
    </div><div>
    Find the definition of that function in that file (search for
    "deliverEmail" and you should find a line saying something like</div><div>
        public function deliverEmail(</div><div>
    If your version has 5 parameters like the updated version I'm
    including for you below, you can *probably* replace your version of
    that function with this one. But **MAKE A BACKUP COPY OF THE FILE
    FIRST!!!** in case it doesn't work.</div><div>
    </div><div>
    Here's the current code for that function, if you choose to try
    replacing your existing copy of that function:</div><div>
    ---CODE STARTS HERE---</div>
    <font size="-1"><tt>/*!</tt><tt><div><br></div>
      </tt><tt>    @function deliverEmail</tt><tt><div><br></div>
      </tt><tt><div><br></div>
      </tt><tt>    Send the $content of an email message to (one or
        more) address(es) in</tt><tt><div><br></div>
      </tt><tt>    $toAddr.</tt><tt><div><br></div>
      </tt><tt>  */</tt><tt><div><br></div>
      </tt><tt>  public function deliverEmail(</tt><tt><div><br></div>
      </tt><tt>    $toAddr,</tt><tt><div><br></div>
      </tt><tt>    $fromAddr,</tt><tt><div><br></div>
      </tt><tt>    $subject,</tt><tt><div><br></div>
      </tt><tt>    $content,</tt><tt><div><br></div>
      </tt><tt>    $headers = ""</tt><tt><div><br></div>
      </tt><tt>  )</tt><tt><div><br></div>
      </tt><tt>  {</tt><tt><div><br></div>
      </tt><tt>    // If it contains any characters outside 0x00-0x7f,
        then encode it</tt><tt><div><br></div>
      </tt><tt>    if (preg_match('/[^\x00-\x7f]/', $subject)) {</tt><tt><div><br></div>
      </tt><tt>      $subject =
        "=?UTF-8?B?".base64_encode(html_entity_decode($subject))."?=";</tt><tt><div><br></div>
      </tt><tt>    }</tt><tt><div><br></div>
      </tt><tt>    if (preg_match('/[^\x00-\x7f]/', $fromAddr)) {</tt><tt><div><br></div>
      </tt><tt>      $fromAddr =
        "=?UTF-8?B?".base64_encode(html_entity_decode($fromAddr))."?=";</tt><tt><div><br></div>
      </tt><tt>    }</tt><tt><div><br></div>
      </tt><tt>    if (preg_match('/[^\x00-\x7f]/',
        $this-&gt;_emailSenderAddr)) {</tt><tt><div><br></div>
      </tt><tt>      $sender =
"=?UTF-8?B?".base64_encode(html_entity_decode($this-&gt;_emailSenderAddr))."?=";</tt><tt><div><br></div>
      </tt><tt>    } else {</tt><tt><div><br></div>
      </tt><tt>      $sender = $this-&gt;_emailSenderAddr;</tt><tt><div><br></div>
      </tt><tt>    }</tt><tt><div><br></div>
      </tt><tt><div><br></div>
      </tt><tt>    // Add the From: and Reply-To: headers if they have
        been supplied.</tt><tt><div><br></div>
      </tt><tt>    if ($fromAddr!="") {</tt><tt><div><br></div>
      </tt><tt>      $headers = sprintf("From: %s", $sender) . PHP_EOL .</tt><tt><div><br></div>
      </tt><tt>                 sprintf("Reply-to: %s", $fromAddr) .
        PHP_EOL .</tt><tt><div><br></div>
      </tt><tt>                 $headers;</tt><tt><div><br></div>
      </tt><tt>    }</tt><tt><div><br></div>
      </tt><tt><div><br></div>
      </tt><tt>    // Add the MIME headrs for 8-bit UTF-8 encoding</tt><tt><div><br></div>
      </tt><tt>    $headers .= "MIME-Version: 1.0".PHP_EOL;</tt><tt><div><br></div>
      </tt><tt>    $headers .= "Content-Type: text/plain; charset=UTF-8;
        format=flowed".PHP_EOL;</tt><tt><div><br></div>
      </tt><tt>    $headers .= "Content-Transfer-Encoding:
        8bit".PHP_EOL;</tt><tt><div><br></div>
      </tt><tt><div><br></div>
      </tt><tt>    return mail(</tt><tt><div><br></div>
      </tt><tt>              $toAddr,</tt><tt><div><br></div>
      </tt><tt>              $subject,</tt><tt><div><br></div>
      </tt><tt>              $content,</tt><tt><div><br></div>
      </tt><tt>              $headers // JKF Commented out for now due
        to security concerns ,</tt><tt><div><br></div>
      </tt><tt>              // JKF Commented out for now due to
        security concerns</tt><tt><div><br></div>
      </tt><tt>              // '-f "'.$fromAddr.'"'</tt><tt><div><br></div>
      </tt><tt>            );</tt><tt><div><br></div>
      </tt><tt>  }</tt><tt><div><br></div>
      </tt></font><div><br></div><div>
    ---CODE ENDS HERE---</div><div>
    </div><div>
    Do not put the "CODE STARTS HERE" or "CODE ENDS HERE" lines into
    your NSSDropbox.php file.</div><div>
    </div><div>
    You can run the command</div><div>
        php -l NSSDropbox.php</div><div>
    to check the syntax of what you have just pasted in.</div><div>
    There's a chance your email client (or my email client or the list
    manager) may wrap the code above badly, thereby breaking it.</div><div>
    </div><div>
    That version should make the recipient's email app have the sender's
    address in the "From:" and "Reply-To:" headers, which I think is
    what you are asking for.</div><div>
    </div><div>
    BTW I am working on an update at the moment. The ZendTo code is
    done, but needs some more testing.</div><div>
    The installer is getting the most work. I've got it done for RedHat
    and CentOS versions 5, 6 and 7.</div><div>
    Ubuntu next.</div><div>
    I'm automating the whole thing, including all the PHP rebuilding,
    SELinux support, firewall support, everything.</div><div>
    And you can just have it run whatever bits of the process you want
    to, so no need to risk it damaging your carefully configured email
    setup or anything like that.</div><div>
    But if you run it on a blank server you've just installed
    RedHat/CentOS on, it will do everything needed except
    preferences.php and zendto.conf.</div><div>
    </div><div>
    Cheers,</div><div>
    Jules.</div><div>
    </div><div>
    </div>
    <div class="moz-cite-prefix">On 23/11/2016 14:55, Matthew Moore
      wrote:<br>
    </div>
    <blockquote cite="mid:AM4PR0201MB221178E023A57A1395D348A88DB70@AM4PR0201MB2211.eurprd02.prod.outlook.com" type="cite">
      <pre wrap="">Hi,

Less sure about the second question, but the answer to the first one can be found here:

<a class="moz-txt-link-freetext" href="http://zend.to/preferences.php">http://zend.to/preferences.php</a>

You need to amend EmailSenderAddress to change the email account.  It comes from that account always.  AFAIK you can't set it so that it comes from the user who added the drop off.

Cheers,

Matthew Moore

Senior Server Engineer and Team Leader
University IT Service
Cardiff University
42 Park Place
Cardiff
CF10 3BB
Tel: +44 (0)29 2087 0867
Email: <a class="moz-txt-link-abbreviated" href="mailto:moorem10@cardiff.ac.uk">moorem10@cardiff.ac.uk</a>

Matthew Moore

Uwch Beiriannydd Gweinyddion ac Arweinydd Tîm
Gwasanaeth TG y Brifysgol
Prifysgol Caerdydd
42 Plas y Parc
Caerdydd
CF10 3BB
Ffôn : +44 (0)29 2087 0867
E-bost: <a class="moz-txt-link-abbreviated" href="mailto:moorem10@cardiff.ac.uk">moorem10@cardiff.ac.uk</a>


________________________________________
From: <a class="moz-txt-link-abbreviated" href="mailto:zendto-bounces@zend.to">zendto-bounces@zend.to</a> <a class="moz-txt-link-rfc2396E" href="mailto:zendto-bounces@zend.to">&lt;zendto-bounces@zend.to&gt;</a> on behalf of Dale E. Qualls <a class="moz-txt-link-rfc2396E" href="mailto:deq@pattishall.com">&lt;deq@pattishall.com&gt;</a>
Sent: 23 November 2016 14:45:00
To: <a class="moz-txt-link-abbreviated" href="mailto:zendto@zend.to">zendto@zend.to</a>
Subject: [ZendTo] Recipient Pickup Identification

Morning all!

I'm hoping that you can help me with two things.

First, when an internal sender drops off a file, the notification message to the recipient doesn't show as coming from the sender.  It shows as coming from the administrator account.  Where is this configured?  One of the problems is that if there is a NDR or an out of the office email returned, it comes to the administrator account, it does not go to the internal person that dropped off the file.

Secondly, looking at a dropoff summary, where the information is listed on who picked up the file, everything looks good with the exception of the Recipient.  It always shows "%s" (sans quotes) instead of the name or email address of the recipient that picked up the file.  I'm guessing that variable isn't being filled in somewhere…

I'm on version 4.01 and I'm hesitant to upgrade as this works so beautifully (except for the two issues above ☺)

Thanks!

Dale







[<a class="moz-txt-link-freetext" href="http://www.pattishall.com/imgs/pattishalllogo.jpg">http://www.pattishall.com/imgs/pattishalllogo.jpg</a>]






Dale E. Qualls
Director of Information Technology
Pattishall, McAuliffe, Newbury, Hilliard &amp; Geraldson LLP
200 South Wacker Drive, Suite 2900
Chicago, IL 60606-5896
Direct: (312) 554-7979 Main: (312) 554-8000 Fax: (312) 554-8015
<a class="moz-txt-link-abbreviated" href="mailto:deq@pattishall.com">deq@pattishall.com</a><a class="moz-txt-link-rfc2396E" href="mailto:deq@pattishall.com">&lt;mailto:deq@pattishall.com&gt;</a> <a class="moz-txt-link-abbreviated" href="http://www.pattishall.com">www.pattishall.com</a><a class="moz-txt-link-rfc2396E" href="http://www.pattishall.com">&lt;http://www.pattishall.com&gt;</a> Follow us on Twitter<a class="moz-txt-link-rfc2396E" href="http://www.twitter.com/Pattishall">&lt;http://www.twitter.com/Pattishall&gt;</a>




[<a class="moz-txt-link-freetext" href="http://images.pattishall.com/images/25pixelimage.gif">http://images.pattishall.com/images/25pixelimage.gif</a>]  [<a class="moz-txt-link-freetext" href="http://images.pattishall.com/images/25pixelimage.gif">http://images.pattishall.com/images/25pixelimage.gif</a>]  [<a class="moz-txt-link-freetext" href="http://images.pattishall.com/images/blf-badge.jpg">http://images.pattishall.com/images/blf-badge.jpg</a>]     [<a class="moz-txt-link-freetext" href="http://images.pattishall.com/images/25pixelimage.gif">http://images.pattishall.com/images/25pixelimage.gif</a>]  Pattishall Ranks GOLD in Illinois in the prestigious
WTR 1000        [<a class="moz-txt-link-freetext" href="http://images.pattishall.com/images/25pixelimage.gif">http://images.pattishall.com/images/25pixelimage.gif</a>]  [<a class="moz-txt-link-freetext" href="http://images.pattishall.com/images/2014chambers-65.jpg">http://images.pattishall.com/images/2014chambers-65.jpg</a>]       [<a class="moz-txt-link-freetext" href="http://images.pattishall.com/images/25pixelimage.gif">http://images.pattishall.com/images/25pixelimage.gif</a>]  [<a class="moz-txt-link-freetext" href="http://images.pattishall.com/images/2013gototop500.jpg">http://images.pattishall.com/images/2013gototop500.jpg</a>]

________________________________
The preceding message and any attachments may contain confidential information protected by the attorney-client or other privilege. You may not forward this message or any attachments without the permission of the sender. If you believe that it has been sent to you in error, please reply to the sender that you received the message in error and then delete it. Nothing in this email message, including the typed name of the sender and/or this signature block, is intended to constitute an electronic signature unless a specific statement to the contrary is included in the message.
________________________________




_______________________________________________
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>
    <div><br></div>
    <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng MBCS CITP CEng

'Talent is God-given ... be humble;
 fame is man-given ... be grateful;
 conceit is self-given ... be careful.' - John Wooden

<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>
  </span></div>
</div></div></body></html>