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.
WorkAround or Analysis :On windows 7 we were using outlook 32 bit component so our Application was running fine, Now I checked on Windows 10 Operating System by default Outlook installed with 64 bit component , so now our PB code which is deployed on Appeon PB 2017 R2 which is 32 bit component , and 32 bit component is not compatible with outlook 64 bit component. that's why error is coming.
Please help me to resolve this issue.
Regards
Vipul Srivastava