<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>&nbsp;do not seem to work for me.&nbsp;</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; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $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; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $emailSubject
            . PHP_EOL . 'Bcc:</span><span class="Apple-style-span"
            style="font-family: Calibri; font-size: medium; ">&nbsp;</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.&nbsp;</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:&nbsp;<a moz-do-not-send="true"
          href="http://www.sitepoint.com/advanced-email-php/">http://www.sitepoint.com/advanced-email-php/</a>)&nbsp;</div>
      <div><br>
      </div>
      <blockquote style="margin:0 0 0 40px; border:none; padding:0px;">
        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;// Make the mail come from the sender, not ZendTo</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; foreach ( $this-&gt;_recipients as $recipient ) {</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // In MyZendTo, don't send email to myself</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (preg_match('/^[^yYtT1]/', MYZENDTO) ||</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (preg_match('/^[yYtT1]/', MYZENDTO)
          &amp;&amp; $senderEmail != $recipient[1])) {</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $success = $this-&gt;_dropbox-&gt;deliverEmail(</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $recipient[1],</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $senderEmail,</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $emailSubject . PHP_EOL . 'bcc:
          <a class="moz-txt-link-abbreviated" href="mailto:emailaddress@mydomain.com">emailaddress@mydomain.com</a>',&nbsp;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          sprintf($emailContent,urlencode($recipient[1]))</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;);</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( ! $success ) {</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          $this-&gt;_dropbox-&gt;writeToLog(sprintf("notification email
          not re-delivered successfully to %s for claimID
          $claimID",$recipient[1]));</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          $this-&gt;_dropbox-&gt;writeToLog(sprintf("notification email
          re-delivered successfully to %s for claimID
          $claimID",$recipient[1]));</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</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>