[ZendTo] Recipient Pickup Identification

Ken Etter kle at msktd.com
Mon Nov 28 16:17:51 GMT 2016

I'm on 4.12 and my NSSDropbox.php has the code you provide below, but I
still have the problem Dale mentioned.  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.  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.  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?  Or at least do this for users who are
employees of my company?

Ken Etter, System Administrator
Architectural Group
260.432.9337 | msktd.com

>>> Jules <Jules at zend.to> 11/23/2016 11:30 AM >>>
> Dale,

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.
Find the definition of that function in that file (search for
"deliverEmail" and you should find a line saying something like
public function deliverEmail(
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.
Here's the current code for that function, if you choose to try
replacing your existing copy of that function:

@function deliverEmail

Send the $content of an email message to (one or more) address(es) in



public function deliverEmail(





$headers = ""


// If it contains any characters outside 0x00-0x7f, then encode it

if (preg_match('/[^\x00-\x7f]/', $subject)) {

$subject =

if (preg_match('/[^\x00-\x7f]/', $fromAddr)) {

$fromAddr =

if (preg_match('/[^\x00-\x7f]/', $this->_emailSenderAddr)) {

$sender =

} else {

$sender = $this->_emailSenderAddr;


// Add the From: and Reply-To: headers if they have been supplied.

if ($fromAddr!="") {

$headers = sprintf("From: %s", $sender) . PHP_EOL .

sprintf("Reply-to: %s", $fromAddr) . PHP_EOL .



// Add the MIME headrs for 8-bit UTF-8 encoding

$headers .= "MIME-Version: 1.0".PHP_EOL;

$headers .= "Content-Type: text/plain; charset=UTF-8;

$headers .= "Content-Transfer-Encoding: 8bit".PHP_EOL;

return mail(




$headers // JKF Commented out for now due to security concerns ,

// JKF Commented out for now due to security concerns

// '-f "'.$fromAddr.'"'



Do not put the "CODE STARTS HERE" or "CODE ENDS HERE" lines into your
NSSDropbox.php file.
You can run the command
php -l NSSDropbox.php
to check the syntax of what you have just pasted in.
There's a chance your email client (or my email client or the list
manager) may wrap the code above badly, thereby breaking it.
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.
BTW I am working on an update at the moment. The ZendTo code is done,
but needs some more testing.
The installer is getting the most work. I've got it done for RedHat and
CentOS versions 5, 6 and 7.
Ubuntu next.
I'm automating the whole thing, including all the PHP rebuilding,
SELinux support, firewall support, everything.
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.
But if you run it on a blank server you've just insta
lled RedHat/CentOS
on, it will do everything needed except preferences.php and
On 23/11/2016 14:55, Matthew Moore wrote:

Hi,Less sure about the second question, but the answer to the first one
can be found here:http://zend.to/preferences.phpYou 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 MooreSenior Server Engineer and
Team LeaderUniversity IT ServiceCardiff University42 Park
PlaceCardiffCF10 3BBTel: +44 (0)29 2087 0867Email:
moorem10 at cardiff.ac.ukMatthew MooreUwch Beiriannydd Gweinyddion ac
Arweinydd TîmGwasanaeth TG y BrifysgolPrifysgol Caerdydd42 Plas y
ParcCaerdyddCF10 3BBFfôn : +44 (0)29 2087 0867E-bost:
moorem10 at cardiff.ac.uk________________________________________From:
zendto-bounces at zend.to <zendto-bounces at zend.to>
( mailto:zendto-bounces at zend.to)  on behalf of Dale E. Qualls
<deq at pattishall.com>
( mailto:deq at pattishall.com) Sent: 23 November 2016 14:45:00To:
zendto at zend.toSubject: [ZendTo] Recipient Pickup IdentificationMorning
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
E. QuallsDirector of Information TechnologyPattishall, McAuliffe,
Newbury, Hilliard & Geraldson LLP200 South Wacker Drive, Suite
2900Chicago, IL 60606-5896Direct: (312) 554-7979 Main: (312) 554-8000
Fax: (312) 554-8015deq at pattishall.com<mailto:deq at pattishall.com>
( mailto:deq at pattishall.com) 
( http://www.pattishall.com)  Follow us on
( http://www.twitter.com/Pattishall)
[http://images.pattishall.com/images/25pixelimage.gif]  Pattishall Ranks
GOLD in Illinois in the prestigiousWTR 1000       
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
listZendTo at zend.tohttp://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto

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.' - Joh
n Woodenwww.Zend.ToTwitter: @JulesFMPGP footprint: EE81
D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20161128/a9062f5e/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 18080 bytes
Desc: Portable Network Graphics Format
Url : http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20161128/a9062f5e/attachment-0001.png 

More information about the ZendTo mailing list