1. Falguni Patel
  2. PowerBuilder
  3. Thursday, 29 April 2021 00:09 AM UTC

Power Builder 2019 R3 can not execute Maillogon for MAPI. 

Refer below code.

Mailsession  ims_mses

ims_mses = create mailSession

mRet = ims_mses.mailLogon (mailNewSession!)

Above code gives mRet = mailReturnFailure!

Please note I am using Power Builder 2019 R3 on Windows 10 64 bit having Outlook 365 (64-bit) mail client on same development machine. 

Can anyone please help? 

 

 

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 29 April 2021 14:17 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Falguni;

  Normally, a 64 bit Outlook client requires a 64 bit PB App. Have you tried a quick test using a 64 bit PB Test App that tries to connect to Office365?

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Monday, 24 May 2021 19:05 PM UTC
Hi Miguel ... It's not whether O365 32 or 64 bit "server" is installed. It's whether the Outlook "client" installed for that server interaction is 32 vs 64 bits.
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 25 May 2021 04:00 AM UTC
Hi Chris,

That's exactly what I was talking about: the Office client.

regards
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 25 May 2021 04:05 AM UTC
I do have to add one thing here: we only use MAPI to open up the Outlook Adress Book, because that one doesn't keep flashing in the toolbar when you open it and thus the user doesn't have to wonder why there's no Address book showing (until he realizes he has to click on the flashing thingy).

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
  1. Helpful
There are no comments made yet.
Rolf Knaden Accepted Answer Pending Moderation
  1. Wednesday, 2 June 2021 12:09 PM UTC
  2. PowerBuilder
  3. # 1

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

Comment
  1. Chris Pollach @Appeon
  2. Friday, 4 June 2021 15:38 PM UTC
You are most welcome!
  1. Helpful
  1. Dsr PowerSrv
  2. Monday, 26 July 2021 16:44 PM UTC
Hi Chris or Rolf,

Someone could explain how they made that 64-bit interface ?

and how they call it from the 32-bit interface ?

I have same problem,

thanks



Damian
  1. Helpful
  1. Rolf Knaden
  2. Tuesday, 27 July 2021 06:02 AM UTC
Hi Damian.

I built a 64-bit standalone executable which get's all infos of the mail to be sent. The only task of it is, to call the mail client.

That executable is called from my 32-bit application.

Regards

Rolf
  1. Helpful
There are no comments made yet.
YUNGHUAI WANG Accepted Answer Pending Moderation
  1. Sunday, 23 May 2021 03:05 AM UTC
  2. PowerBuilder
  3. # 2

My problem is the same as Falguni, mailReturnFailure will appear!

The development environment is: 2019 R3 64bit + Office 365 64bit

Attachments (2)
Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.