- Vipul Prakash Srivastava
- PowerBuilder
- Thursday, 7 January 2021 06:05 AM UTC
Our PB code in 2017 R3 was migrated to windows 10 environment. mail functionality which was working on Win7 no longer works on Outlook 365 (Outlook for Office 365 MSO (16.0.10730.20155)).
We get Microsoft Outlook Error
"Login Failed"
Our code looks like this;
// Create a mail session
mSes = create mailSession
// Log on to the session
mRet = mSes.mailLogon("Default","")
IF mRet <> mailReturnSuccess! THEN
mRet = mSes.mailLogon(mailNewSession!)
IF mRet <> mailReturnSuccess! THEN
MessageBox("Mail", 'Logon failed.')
RETURN
END IF
END IF
Things tried:
Outlook is open all the time
I tried setting Outlook as default through settings,
Added [PB]
UseSimpleMAPI=yes
to pb.ini, but no luck
Analysis I done : In Windows 7 Operating system Outlook component installed with 32 bit , so our application was running fine but in Windows 10 Operating system , Outlook Component I checked it is 64 bit and our PB application is 32 bit, so that's why 32 component PB will not support 64 bit Outlook component.
Please provide the solution so I can fix my problem.
Thanks &Regards
Vipul Srivastava
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.