Paradox Community

Items in pnews.paradox-programming

Subject:Re: sendDlg
Date:Sat, 28 Nov 2020 13:27:42 -0500
From:"Steven Green" <greens@diamondsg.com>
Newsgroups:pnews.paradox-programming
"MAIN" is the error you get when Outlook isn't already open

--

Steven Green
Myrtle Beach, South Carolina, USA

http://www.OasisTradingPost.com

Collectibles and Memorabilia
Vintage Lego Sets and Parts
- and Paradox support, too
"Kevin Zawicki"  wrote in message 
news:5fc18626$1@pnews.thedbcommunity.com...




I have some legacy code looking for a quick fix.

It uses sendDlg to build an email and open in Outlook.
(I long ago abandoned trying to get just email send to work, use other tool,
so I open email in Outlook).


This system was moved to Win10,Outlook 2019.

When the sendDlg is called, a paradox error appears, a dialog with one word
"MAIN".

When I close or debug error, paradox winks out.

I have set default MAPI mail system provider to Outlook.


I am looking at OLE or alternatives for this now.
Anyone have a outlook OLE library or sample code?

I already have tools to send and receive emails, but in this case we are
looking to open the email to review and send in Outlook.



Anyone getting sendDlg  to work at all in Win10?



script:
var
m mail
endvar

m.sendDlg()

-----

Should at least open an outlook new mail.



sendDlg ( ) Logical

sendDlg sends a mail message with user interaction. The user will be shown
the message as it currently exists (using the user's default MAPI mail 
system
provider). They can then modify it before sending it. 


Copyright © 2004 thedbcommunity.com