Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Synapse plugin

edited September 2012 in General
I have some clients that use hosted GMail (Google Apps) as the mail
server. My program generates a report that is emailed to a BCC list. I
have gone through the rbWiki entry 'How To...Customize Indy Email
Settings' and think that I can adapt that example for use with Synapse
rather than Indy.

But, in looking through ppSMTPSynapse.pas I noticed that BCC handling
was commented out:
//FMessage.Header.BCCList.Assign(aMessage.ToBlindCarbonCopy);
presumably due to some problem with it. So I'm not sure how, or whether,
to proceed with Synapse.

I'm reluctant to use Indy because it requires the OpenSSL libraries
which have different 32-bit and 64-bit implementations, with the same
names, that could become a support nightmare. I'm still early on with
Synapse, but it doesn't seem to need those libraries.

Any ideas/suggestions?

Using D7 RB11.05

Don

Comments

  • edited September 2012
    Hi Don,

    I downloaded the latest version of Synapse and took a look at the
    source. The reason this line is commented out is that the Synapse
    message header simply does not support automatically sending blind
    carbon copies. If I remember correctly I kept that line in (commented
    out) hoping that some day they would add this feature.

    Upon further research on their wiki site, it seems that they expect the
    developer to manage the BCC list manually. I will research this further
    and possibly add this to the next release of ReportBuilder.

    http://www.ararat.cz/synapse/doku.php/public:howto:sendingbcc

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2012
    Thanks for the Synapse link Nico. Now I understand why that line is
    commented out. However, I'm not sure that I understand what Synapse is
    recommending:
    "In other words? add your BCC to your SMTP delivery code only! Do
    not add BCC names and e-mail addresses to any message headers!"

    This seems to say that setting ppReport1.EmailSettings.BlindCarbonCopy
    is bad, or at least won't work. The only other way I know to 'hide' the
    recipients identities from one another is to loop through the list and
    send each one a separate email. Is that the solution, or am I missing
    something here?

    Thanks for your help,
    Don

  • edited September 2012
    Hi Don,


    I believe you are correct. It is very strange that Synapse does not
    natively take care of this but I assume they want you to manually loop
    through every BCC recipient and individually send an email to each of them.

    To update the plugin, I would add a loop below the first send command
    that iterates through each aMessage.ToBlindCarbonCopy entry and
    individually sends an email to each.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.