1. Randolph Fung-A-Fat
  2. PowerBuilder
  3. Friday, 13 April 2018 19:18 PM UTC

Hi all,

Hoping someone's run into this issue and knows the fix...sending emails using PB 12.6 and everything works fine, except when on a shared desktop, where code fails calling mailLogon and the program crashes.

Any help would be greatly appreciated.

Thanks.

Ricky

 

John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 17 April 2018 02:21 AM UTC
  2. PowerBuilder
  3. # 1

Assuming you are attempting to use Outlook via the PB mail objects, a default Outlook mail profile needs to exist on the machine running the PB app, at least this is how Outlook works when using OLE objects instead of the MAPI objects from a PB app. If the mailLogon method is unable to locate an Outlook profile, it will fail.

Since multiple users will be running the app from one machine/server, you may need to create an Outlook mail profile on that machine for each user.

I'm not an Outlook Admin, so I suggest you confer with your Outlook Administrator if you have one, or search MSDN for information on Outlook mail profiles.

HTH

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 16 April 2018 13:07 PM UTC
  2. PowerBuilder
  3. # 2

Hi Ricky;

   Hard to say what the issue is unless we can trap the error(s). My suggestion would be to wrap your email code in a TRY..CATCH statement. Quite often, the "Exception" object will then contain more information as to the nature of the problem.

Regards ... Chris

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.