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

How to suppress the Outlook security warning when sending

edited October 2007 in General
Hi All,

Using RB 10.07, Delphi 2007, Outlook 2003. Printing reports to email as a
PDF attachment with the 'PreviewInEmailClient' property set to false.

Is there a way to suppress the Outlook security message 'A program is trying
to automatically send email on your behalf...' prompt?

It's not too troublesome for one or two emails but we are sending several
dozen at a time and it's a nuisance for the users. We can't really use
PreviewInEmailClient := True for the same reasons.

Thanks in advance.

Regards, Paul.

Comments

  • edited October 2007
    Hi Paul,

    Unfortunately there is no way to suppress this message when using Outlook to
    send emails. This message is Microsoft's security "solution" to any
    malicious applications taking control of Outlook and sending unwanted emails
    (spam, viruses) to others with their product.

    One option would be to try using the TppSMTPIndy plugin which accesses the
    email server directly.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2007
    We are using

    http://www.add-in-express.com/outlook-security/

    Pro: works fine
    Con: Dll, no source

    hth

  • edited October 2007
    Hi Guys,

    Thanks for your answers.

    It's not much of a 'solution' from MS is it? I'll have a look at using the
    Indy module I think. There will be a big cost impact for one of our
    customers if they have to buy something commercial such as the
    add-in-express security tool.

    Regards, Paul.


  • edited October 2007
    I'm not affiliated to addinexpress but there are no runtime fees to pay...

    Problem we had was that with Indy you can send an email but there's no
    trace/log of it in the sent items of outlook etc...

    hth Ilse


  • edited October 2007
    Hi Paul
    There is a product called Outlook Redemption. COM Library I think.
    Have a look at http://www.dimastr.com/redemption/
    Cheers
    Dominic

  • edited October 2007
    Hello Ilse.

    I see. The mail does really need to be in the users Outlook 'Sent' folder.

    So with addinexpress, is it a one off payment and then you can deploy it as
    often as you want? Do you know if there is anything to install for each end
    user PC or can it be distributed with or within our application?

    Thanks for your help.

    Regards, Paul.


    Perhaps I will look at the
  • edited October 2007
    Thanks Dominic,

    Do you use (or happen to know if) Redemtion works with the Report Builder
    email functionality. I don't mind some code to disable the security but I
    don't want to have to re-write any of the mail handling from Report Builder
    if possible.

    Thanks, Paul.


  • edited October 2007

    The ReportBuilder email architecture is open to creating additional plug-ins
    that implement the SMTP functionality responsible for sending the email.

    You can easily create additional SMTP plug-ins for RB. To create a new
    plug-in, use one of the existing plug-ins as a starting point. They are
    installed to RBuilder\Source\ppSMTPIndy.pas, ppSMTPMapi.pas,
    ppSMTPOutlook.pas.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2007
    Hi Nard,

    Thanks for pointing that out.

    Presumably, the default must be SMTP (I've not looked at it too closely, it
    just worked!). Does using the supplied Outlook plug-in still produce any
    security warnings? I might move to that for simplicity's sake as all our
    users are on Outlook anyway. We could then revisit the alternative
    approaches at a later date if there is a demand for alternatives to Outlook.

    Regards, Paul.



  • edited October 2007
    Hi Paul,

    I believe when using the provided Outlook plugin, the security message will
    also appear when directly sending emails. If there is a library out there
    that allows you to send email with Outlook and bypass the security messages,
    it should be fairly easy to create a new email plugin and integrate it with
    ReportBuilder.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2007
    Hi Nico,

    Thanks for that.

    I'll see what's about and try it out.

    Regards, Paul.

  • edited December 2007
    Hi Paul
    I don't actually use it, but I think it has its own methods and procedures
    for performing Outlook OLE automation. It just somehow bybasses the SP1
    security.
    Dominic
  • edited December 2007
    Thanks Dominic,

    Since posting, I've changed over to using the built in IndyMail handling
    which is actually better than using Outlook for volume mail production. It
    works very well once it's set up correctly.

    Regards, Paul.



This discussion has been closed.