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

Emailing Reports

edited July 2006 in General
What protocol does the email system use? Is it possible to use it if the
users email account requires authentication?

Comments

  • edited July 2006
    Hi Todd,

    The email feature natively includes three plugins...

    ppSMTPMapi.pas: Uses Microsoft's Messaging Application Programming Interface
    (MAPI) to communicate with your user's default email client installed on
    their machine (i.e. Outlook, Eudora, etc.). This requires no authentication
    because it is already set up in the email client.

    ppSMTPOutlook.pas: Uses Microsoft Outlook or Outlook Express COM interface
    to take control of the application and email directly.

    ppSMTPIndy.pas: Uses Indy's SMTP object to email directly. This requires
    user authentication.

    Take a look at the email demo (dm0110.pas) located in the \RBuilder\Demos\1.
    Reports\... directory for examples of using these plugins.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    Thanks Nico. If I use one of the methods that connects to Outlook, doesn't
    Outlook notify the user that another applicaiton is trying to use it and ask
    for their OK?


  • edited July 2006
    Nico,

    I reviewed the IndySMTP object method demonstrated in report 110. When you
    run it you must set the "Connection" properties in the dialog. How can I set
    these properties in my code, so the user doesn't have to set them each time?

  • edited July 2006
    Nico,

    Two other questions:

    1) Using the same settings that I use to successfully send an email with
    Indy components, I'm getting an "unknown authentication type 5.7.4" error. I
    assume that this is becuase the authentication type needs to be set to "At
    Login" instead of none? How can I work around this?

    2) Is the EmailSettings File Name property a place where I can put an
    attachment?

    Thanks for your help.


  • edited July 2006
    Yes, this is an unfortunate security measure Microsoft has added to their
    email products to prevent the spread of viruses and spam on unsuspecting
    users' machines. Currently there is no way to work around this issue.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    You can use the Report.EmailSettings.HostAddress, UserName, and Password to
    define the login properties of the Indy plugin in code.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    1. The authentication type is automatically set to atLogin by default when
    using the Indy plugin. Which version of Indy are you using?

    2. The FileName property defines what the report that is exported and
    attached to the email will be named. You can use the Attachments property
    (runtime only) to define any other files you would like to attach.
    Additional attachments can also be added using the built-in email dialog in
    RB or your email client software.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    Hello,
    I found a toolbox based on extended MAI which does not have the security
    warning.
    http://www.rapware.nl/
    I have no idea if its compatible, but its the only one, I know which has not
    such warnings.

    best regards
    chris
    www.eulanda.it
    ERP Software
    Con tecnologia avanzata



  • edited July 2006
    Hi Chris,

    Thanks for the information. We'll research this and possibly enhance the
    MAPI plugin for a later release of ReportBuilder.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    Hello to all and Nico,

    another workaround:

    if the user has exchange server, there is an adminstrator template to
    disable those checkings for individual post boxes. I have only a german
    description, but we are on translating them to english, italian and dutch in
    the next weeks.

    http://www.eulanda.de/inside/bedienerhandbuch/zubehoer/outlook/sicherheit.htm

    but any way, the file names and registry keys are the same, so anyone can
    read it...

    best regards
    chris

    www.eulanda.it
    ERP Software
    Con tecnologia avanzata


  • edited July 2006
    Hi Chris,

    Great, thanks again for the info.

    --
    Regards,

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

    Best Regards,

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