1. perumal mani
  2. PowerBuilder
  3. Friday, 2 February 2024 10:51 AM UTC

mailsession object not working in windows 11. 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 2 February 2024 20:13 PM UTC
  2. PowerBuilder
  3. # 1

Hi,

For us, the only way MAPI works reasonably well, is by having this entry in the PB.ini file:

 

[PB]
UseSimpleMAPI=No

 

See if it helps.

Comment
There are no comments made yet.
perumal mani Accepted Answer Pending Moderation
  1. Friday, 2 February 2024 17:49 PM UTC
  2. PowerBuilder
  3. # 2

Microsoft outlook installed. Both outlook & PB are 64bit.

Comment
  1. Chris Pollach @Appeon
  2. Friday, 2 February 2024 18:56 PM UTC
FWIW: In that case. your Operations Team may not have installed the Outlook "client" on your machine(s) or again it's there but of the wrong bitness.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 2 February 2024 17:08 PM UTC
  2. PowerBuilder
  3. # 3

Hi Perumal ;

  Thank you for that information!
   Since the error right away is on the "mailLogon" command, I would suspect the MAPI layer.
   Causes could then be ...
  • No mail client software installed on your machine
  • The mail client software installed is of a different bitness than your PB App
  • A Windows "policy" is blocking your access to the mail client software
  • Your anti-virus is blocking your access to the mail client software
  • etc

Regards .. Chris

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 2 February 2024 16:38 PM UTC
  2. PowerBuilder
  3. # 4

Hi Perumal ;

  Can you tell us ...

  • W11 version & build
  • PB version & build
  • Exact error(s) encountered.
  • Provide a code snippet of your MAPI PowerScipt
  • etc

Regards .. Chris

Comment
  1. perumal mani
  2. Friday, 2 February 2024 16:52 PM UTC
HI Chris,

W11 version 22H2 (OS build 22621.3007)

PB version 2022 Build 1900

Error:

MailSession mSes

mSes = Create MailSession

ls_return_code = mSes.mailLogon(mailNewSession!)



ls_return_code expected value is mailReturnSuccess! but getting mailReturnfailure!



  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.