SendMail: MAPI
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
"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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Email export, if the program uses RemObjects (Server, Client only seems to
be OK). Is that a known restriction? Any suggestions?
Txs,
PMM
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
So RemObjects is using Indy, a IndyMAPI-plugin would be fine ...
Txs anyway,
PMM
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
default MAPI one. (ppSMTPIndy10.pas).
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Peter