Hi.
I am suffering the same problem.
This is my code:
string ls_profile
integer iret
mailReturnCode mRet
// Create a mail session
mSes = create mailSession
mRet = mSes.mailLogon(mailNewSession!)
//ls_profile="Outlook"
//mRet = mSes.mailLogon(ls_profile,"",mailNewSession!)
CHOOSE CASE mret
CASE mailReturnSuccess!
timer(2)
CASE mailReturnLoginFailure!
gnvo_enacfm.messagebox("Create Mail session",'LoginFailure')
CASE mailReturnInsufficientMemory!
gnvo_enacfm.messagebox("Create Mail session",'mailReturnInsufficientMemory')
CASE mailReturnTooManySessions!
gnvo_enacfm.messagebox("Create Mail session",'mailReturnTooManySessions')
CASE mailReturnUserAbort!
gnvo_enacfm.messagebox("Create Mail session",'mailReturnUserAbort')
CASE mailReturnFailure!
gnvo_enacfm.messagebox("Create Mail session",'mailReturnFailure')
CASE ELSE
gnvo_enacfm.messagebox("Create Mail session", 'unknown Error' )
END CHOOSE
return mRet
No matter using a specific profile or not, nothing happens and the "mSes.mailLogon()" always returns "mailReturnFailure!".
I'm using Outlook 64-bit (and can't change that) and PB 2019 R3 32-Bit (and can't switch to 64-bit without major conversions).
Is there any chance of getting it to work?
Regards,
Rolf
That's exactly what I was talking about: the Office client.
regards
When Office 64 bit is installed though, we DON't use MAPI, due to all of the problems that come with it. We do everything with OLE in that case.
So, Chris, if you are referring to MAPI needing a 64 bit powerbuilder executable when office bitness is 64, then you're probably right and that would explain all the troubles we have been going through with MAPI and outlook 64 bits
regards