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
"Either there is no default mail client or the current mail client cannoy fulfill the messaging request. Please run Microsoft Outlook and run it as default."
"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.