mailsession object not working in windows 11.
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- mailsession object not working in windows 11
- perumal mani
- PowerBuilder
- Friday, 2 February 2024 10:51 AM UTC
- Friday, 2 February 2024 20:13 PM UTC
- PowerBuilder
- # 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.
- Friday, 2 February 2024 17:49 PM UTC
- PowerBuilder
- # 2
Microsoft outlook installed. Both outlook & PB are 64bit.
Comment
- Chris Pollach @Appeon
- 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.
-
Helpful Loading... Helpful 0
There are no comments made yet.
- Friday, 2 February 2024 17:08 PM UTC
- PowerBuilder
- # 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.
- Friday, 2 February 2024 16:38 PM UTC
- PowerBuilder
- # 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
- perumal mani
- 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!
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!
-
Helpful Loading... Helpful 0
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.
However, you are not allowed to reply to this question.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »