<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
On 23/03/2012 19:20, Craig Chambers wrote:
<blockquote cite="mid:CB923C7C.471BF%25craig@craigchambers.net"
type="cite">
<div><span class="Apple-style-span" style="font-family: Calibri;
font-size: medium; ">Hi Jules,</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri;
font-size: medium; "><br>
</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri;
font-size: medium; ">Thanks for getting back to me! The
following instructions</span> do not seem to work for me. </div>
<div><br>
</div>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px;">
<div><span class="Apple-style-span" style="font-family: Calibri;
font-size: medium; ">Edit /opt/zendto/lib/NSSDropoff.php</span><span
class="Apple-style-span" style="font-family: Calibri;
font-size: medium; "><br>
</span><span class="Apple-style-span" style="font-family:
Calibri; font-size: medium; ">Look at line 766 and you
should find a line that just says</span><span
class="Apple-style-span" style="font-family: Calibri;
font-size: medium; "><br>
</span><span class="Apple-style-span" style="font-family:
Calibri; font-size: medium; "> $emailSubject,</span><span
class="Apple-style-span" style="font-family: Calibri;
font-size: medium; "><br>
</span><span class="Apple-style-span" style="font-family:
Calibri; font-size: medium; ">Change that to</span><span
class="Apple-style-span" style="font-family: Calibri;
font-size: medium; "><br>
</span><span class="Apple-style-span" style="font-family:
Calibri; font-size: medium; "> $emailSubject
. PHP_EOL . 'Bcc:</span><span class="Apple-style-span"
style="font-family: Calibri; font-size: medium; "> </span><span
class="Apple-style-span" style="font-family: Calibri;
font-size: medium; "><a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:mymonitoraddress@domain.com">mymonitoraddress@domain.com</a></span><span
class="Apple-style-span" style="font-family: Calibri;
font-size: medium; ">'</span><span class="Apple-style-span"
style="font-family: Calibri; font-size: medium; "><br>
</span><span class="Apple-style-span" style="font-family:
Calibri; font-size: medium; ">and that should be all that is
required.</span></div>
</blockquote>
<div><br>
</div>
<div>The message is sent but I am not getting a delivery to the
BCC address. I have looked in /var/log.mail.log and see the
message getting sent to our exchange server for the recipient
but not BCC recipient. </div>
<div><br>
</div>
<div>The line number to edit also doesn't match up for me, I have
$emailSubject, on line 764. Maybe I am running an older version.
I also had to add a "," to the end of the line to prevent a PHP
error. Just to make sure I am in the right place here is the
code I have changed (with the email address sanitized and a bit
more code on either side to make sure this is the right
location). I also changed the bcc to all lower case after
reading that some versions of PHP don't work with Exchange
servers if the "bcc" is not all upper or lower case (See BUG
ALERT on this page: <a moz-do-not-send="true"
href="http://www.sitepoint.com/advanced-email-php/">http://www.sitepoint.com/advanced-email-php/</a>) </div>
<div><br>
</div>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px;">
<div> // Make the mail come from the sender, not ZendTo</div>
<div> foreach ( $this->_recipients as $recipient ) {</div>
<div> // In MyZendTo, don't send email to myself</div>
<div> if (preg_match('/^[^yYtT1]/', MYZENDTO) ||</div>
<div> (preg_match('/^[yYtT1]/', MYZENDTO)
&& $senderEmail != $recipient[1])) {</div>
<div> $success = $this->_dropbox->deliverEmail(</div>
<div> $recipient[1],</div>
<div> $senderEmail,</div>
<div> $emailSubject . PHP_EOL . 'bcc:
<a class="moz-txt-link-abbreviated" href="mailto:emailaddress@mydomain.com">emailaddress@mydomain.com</a>', </div>
<div>
sprintf($emailContent,urlencode($recipient[1]))</div>
<div> );</div>
<div> if ( ! $success ) {</div>
<div>
$this->_dropbox->writeToLog(sprintf("notification email
not re-delivered successfully to %s for claimID
$claimID",$recipient[1]));</div>
<div> } else {</div>
<div>
$this->_dropbox->writeToLog(sprintf("notification email
re-delivered successfully to %s for claimID
$claimID",$recipient[1]));</div>
<div> }</div>
<div> }</div>
</blockquote>
<div><br>
</div>
<div>The email address I am using is not the same as the sender or
recipient so it shouldn't be removed as part of the "don't send
to myself" logic. I will keep looking for a solution but any
guidance is always appreciated.</div>
</blockquote>
You've got the line of code right, yes. And also you're absolutely
right about the "," that should be on the end of the line, my
mistake.<br>
<br>
But then it really should work. Certainly does for me. I tried it by
sending it to myself.<br>
So not sure on that one, I'll have to do some more digging.<br>
<br>
Jules.<br>
<blockquote cite="mid:CB923C7C.471BF%25craig@craigchambers.net"
type="cite">
<div><br>
</div>
<div>- Craig</div>
<div><br>
</div>
<div>P.S. I figured the add to address book and library options
were things that sound easy but are difficult to enact. Just
figured I would put in the request for future reference and to
see if it was something other people wanted :-)</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 CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
'It's okay to live without all the answers' - Charlie Eppes, 2011
'All programs have a desire to be useful' - Tron, 1982
'That is the land of lost content,
I see it shining plain,
The happy highways where I went,
And cannot come again.' - A.E. Houseman
</pre>
</body>
</html>