1. Roland Smith
  2. PowerBuilder
  3. Sunday, 10 January 2021 23:23 PM UTC

I am trying to add the ability to create a new mail item in Outlook from a PB app.

It works great the first time, the Outlook new mail window appears and the recipient, subject, and body are filled in.

The second time I try to do it, I get an 'error in external' system error.

You can see my code here:

https://www.topwizprogramming.com/freecode_outlook.html

 

Accepted Answer
mike S Accepted Answer Pending Moderation
  1. Monday, 11 January 2021 00:55 AM UTC
  2. PowerBuilder
  3. # Permalink

did you do a disconnect, and destroy everything?

I do this after i send each email.

 

 

li_rc = iole_outlook.DisconnectObject()
destroy iole_item
destroy iole_outlook

Comment
  1. Roland Smith
  2. Monday, 11 January 2021 02:27 AM UTC
Thanks, that was the problem. I had the connect/disconnect in the application object. Now I put it all in the button.
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.