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
FYI: http://www.topwizprogramming.com/freecode_emailsmtp.html
Instead you can use my PBNISMTP, a variation on Bruce's PBNISMTP library:
https://www.topwizprogramming.com/pbnismtp.html
https://www.youtube.com/watch?v=u6xFgAwptWs
See time frame 1.05.35