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

SendMail: MAPI

edited July 2009 in General
I'm in the process to update from RB8 to RB11 and failed to use the
"Send-Email" option. While the OutLook preview is shown in a simple example
project, it fails in a more complex "real world" one. All settings for Email
are unchanged, same machine, same user... From what I can see inside
debugger, the problem is, that "MAPILogOn" fails (result-code
MAPI_E_LOGON_FAILURE) in the complex szenario, while it succeeds in the
simple one. I'm testing on WIN XP with D7. What's to do?
PMM

Comments

  • edited July 2009
    Hi Peter,

    My first suggestion would be to begin simplifying the complex scenario to
    try to isolate the issue. Are you defining a username and password? If so,
    try removing these property values. Are you certain this is being run under
    the same user account? There must be some difference between the two
    applications that is causing this behavior.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2009
    Finally I've found, that ReportBuilder is unable to open a MAPI-Session for
    Email export, if the program uses RemObjects (Server, Client only seems to
    be OK). Is that a known restriction? Any suggestions?
    Txs,
    PMM

  • edited July 2009
    Hi Peter,

    This is not a known issue and I was unable to find any information on the
    internet about something similar. It seems like this may be some sort of
    security setting that is causing the problem. The MAPI plugin is simply a
    wrapper around the Delphi unit MAPI.pas which provides standard Simple MAPI
    commands to interact with capable email clients. Perhaps try contacting the
    RemObjects support to see if they know anything about 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 2009

    Windows has extremely tight restrictions on Simple MAPI because malware has
    exploited that API.

    For a server application I recommend using Indy or Synapse. Or try EasyMAPI
    which uses Extended MAPI. EasyMAPI is available from RapWare. A
    ppSMTPEasyMapi plug-in is installed with RB 11.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2009
    I see...
    So RemObjects is using Indy, a IndyMAPI-plugin would be fine ...
    Txs anyway,
    PMM

  • edited July 2009
    Hi Peter,

    Indy and MAPI are completely different approaches to sending email. Indy is
    a Delphi library that allows you to directly connect to your SMTP server and
    send email. MAPI is a Microsoft protocol that allows you to take control of
    the default email client (Outlook, Eudora, etc.) on a machine and send
    email.

    In ReportBuilder we created email plugins for these separate methods making
    it easy to use each one separately, they cannot however be used in
    conjunction with each other.

    RemObjects is a completely different product however since it's main use is
    for remoting (client/server communication) we recommend using it with the
    Indy plugin to avoid security restrictions.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2009
    > RemObjects is a completely different product however since it's main use

    I know, but what did you meen by "we recommend using it with the Indy plugin
    to avoid security restrictions."?
    I'm using RO with Indy (and that seem to be where the security restrictions
    are coming from). Or do you meen that you have an Indy plugin for RB?
    Regrads Peter


  • edited July 2009
    Yes, we have an Indy plugin for RB which should be used rather than the
    default MAPI one. (ppSMTPIndy10.pas).

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2009
    Txs Nico. I wasn't awre of ppSMTPIndy10.pas :(
    Peter

This discussion has been closed.