cancel
Showing results for 
Search instead for 
Did you mean: 

PB 12.6 MailSession.MailLogon() Returns mailReturnSuccess! but also error window

Former Member
0 Kudos

Hi,

if i try to open Thunderbird via mailsession object and maillogon everything works fine, except that Windows opens a message box with:

to perform the requested action is not assigned e-mail program. install a corresponding e-mail program, or create it in the system control under "standard programs" an assignment when a program is already installed.

but i did everything.

after clicking ok on this window, everthing works fine. so the mail program which i set as Default was used to send the mail

but how can i handle this that no window will be shown...

iam using powerbuilder 12.6 with EBF 4088 and enabled simple mapi

Regards, Markus

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Markus;

  That is because ...

1) Thunderbird does not support Extended MAPI that was introduced in PB 12.6.

2) There was a PB 12.6 MAPI bug that was fixed in build 4081 (or higher).

3) You need to change your PB.INI file ...

https://scn.sap.com/message/16310674#16310674

HTH

Regards ... Chris

Former Member
0 Kudos

Thx for your fast reply.

I found also this https://scn.sap.com/message/16310674#16310674.


Because of that and something else i got build 4088 and already updated the pb.ini file with:


[PB] UseSimpleMapi=yes


And after that the MAPI over Thunderbird worked.

Except that this strange windows error message occurs:


"to perform the requested action is not assigned e-mail program. install a corresponding e-mail program, or create it in the system control under "standard programs" an assignment when a program is already installed."


This error message box just occurs one time. After clicking it away it doesn't occure anymore.

But if i close the application and open it again the error message occurs again one time.

Former Member
0 Kudos

Hi Markus;

   Are you using MS-Windows 10?

Regards ... Chris

Former Member
0 Kudos

Hi Chris,

no i use:

MS-Windows 7

PB 12.6 Build 4088

Thunderbird Version 45.3.0

But I got the same problem with Lotus Notes ( I think everything except Outlook)

It looks like the application can't find a handle or something like that to thunderbird that fast that this error message pops up.

After that the handle (or something like that) was found and everything works fine, till i restart the application.

Ragards Markus

Former Member
0 Kudos

1) Does this occur on more than one PC?

2) What happens when you run your application EXE in Admin mode?

Former Member
0 Kudos

1) yes, the problems occurs on more then one pc. also when i start it in PB itself or as builded application itself.

2) the same error from windows occurs when i start this in admin mode.

Former Member
0 Kudos

Thank you for the feedback!

Just another thought  ... Any chance that you could try the current build (4098)?

Former Member
0 Kudos

i just downloaded Version 4108 ( from yesterday ) but the error occurs anyway.

Former Member
0 Kudos

Hi Markus;

Thank you for testing the latest v12.6 build ... I am sorry that this version did not correct your issue!

May I suggest ....

1) Create a support ticket with SAP on this issue.

2) As a "work around", what about the following ...

  • Use the FindWindowW SDK method to locate the error message dialogue.
  • With the "handle" of the error dialogue from the FindWindow, use PB's Send ( ) method to send a reply to the error dialogue (ie: press OK button or just pretend the user hit Enter or ESC) to automatically get rid of this error message for the application user.

Food for thought.

HTH

Regards .... Chris

Former Member
0 Kudos

Hi Chris,

thank you for your help.

For now I think the application user has to live with that

I will open a SAP issue and try your workaround.

If i am finished with that i will tell you. Thank you again

Regards

Markus

Former Member
0 Kudos

Hi Markus;

As always, you are most welcome!

PS: Have you hugged your DataWindow's today? 

Regards ... Chris