Hi,
I have a problem with outlook.
I use the free code Outlook from Topwiz.
If I use this it works perfekt, if the outlook is open. But if not the mails are in the Outbox and doesn't not send.
What can I do without open Outlook separately?
André
OutlookThis program is an example of OLE Automation of Microsoft Outlook. It will read a list of items from the Inbox and show them in a DataWindow. The currently selected item is shown in a webbrowser control. The Outlook Object Model Reference contains details on all the Outlook objects, methods and properties. |
thats it. Send before start and no no display. Thx
...
lole_recipient = lole_mailitem.recipients.add( trim( tab_benutzer.tabpage_benutzer.sle_email1.text ) )
lole_recipient.type = oleapplication.olto
lole_recipient.resolve
lole_recipient = olenamespace.syncobjects.item(1)
lole_mailitem.send
lole_recipient.start
// lole_mailitem.display
catch (RuntimeError er2)
MessageBox( 'Fehler', 'Outlook konnte nicht gestartet werden~r~n~r~n' + er2.text )
end try
oleApplication.DisconnectObject()
if isvalid( oleApplication ) then destroy oleApplication
...
haha, so you didn't really try the sample program that I made for you. No problem. As you might find, SyncObjects() - for at least during some time - gave us problems on Citrix connected users. The alternative is to use SendAndReceive(false). Probably SyncObjects is faster though, since SendAndReceive syncs each and every folder.
Glad it's working now, please mark as resolved.
regards.