A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Automating Outlook .msg form works but email not sent immediately



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 24th 06, 06:40 PM posted to microsoft.public.outlook.program_forms
GregCost
external usenet poster
 
Posts: 3
Default Automating Outlook .msg form works but email not sent immediately

The automation code only loads and makes visible an untitled.msg form
(separate from my project), the main form of Outlook is not loaded. In the
..msg form I can load the contents of the Clipboard, change it, add text, etc.
Clicking the Send Key from the Outlook .msg toolbar works except the message
queues until the next time I’m in Outlook’s main form and I hit the
“SEND/RECEIVE” key. Is there an option in Outlook that sends a .msg when
the send key is clicked from the .msg form?

Why do it this way? … you might ask. For a couple of reasons:

1.I do not have to re-invent the wheel “so to speak” make available all of
the necessary fields, options, addressee and address lists etc. inside my
project.

2.I do not have to worry about cleanup. The native send closes the outlook
..msg object

3.Everything the user needs is there in a format that they are familiar and
comfortable using.

4. I use vs2003 and I had many problems pasting the contents of the
clipboard when it was mixed between Text, Graphics and HTML, etc. I
understand this process has been simplified in VS2005 which I am not ready to
purchase

Any help GREATLY appreciated!

Dim olApp As Outlook.Application
Dim olmailitem As Object Dim olNs As Outlook.NameSpace
Dim olMail As Outlook.MailItem

Try
olApp = CreateObject("Outlook.Application")
olNs = olApp.GetNamespace("MAPI")
olNs.Logon()
olMail = olApp.CreateItem(olmailitem)
olMail.Display()
SendKeys.SendWait("{TAB}")
System.Threading.Thread.Sleep(50)
SendKeys.SendWait("{TAB}")
System.Threading.Thread.Sleep(50)
SendKeys.SendWait("{TAB}")
System.Threading.Thread.Sleep(50)
SendKeys.SendWait("{TAB}")
System.Threading.Thread.Sleep(50)
SendKeys.SendWait("^v")
System.Threading.Thread.Sleep(50)

Catch ex As COMException
MessageBox.Show("Error accessing Word document.")
End Try

  #2  
Old May 24th 06, 09:16 PM posted to microsoft.public.outlook.program_forms
[email protected]
external usenet poster
 
Posts: 2
Default Automating Outlook .msg form works but email not sent immediately

MSG Files:

Priasoft has several MSG related products. http://www.priasoft.com

In particular, they have a MSG file parsing library that gives
developers access to all the properties of a .msg file, html body,
recipients, attachments..., without outlook.

They also have an export library that works with the MSG library for
exporting msg files to other formats, like PDF, TIF, and HTML.

A command line tool exists too that converts MSG files to XML files:
http://www.priasoft.com/downloads/ms...allMSG2XML.exe

For PST files, they have a couple of command line tools that allow
extraction of messages to MSG, again without requiring outlook, and it
supports both ANSI and UNICODE pst files. There is also the reverse, a
MSG to PST utility.
http://www.priasoft.com/downloads/ms...allMSG2PST.exe
http://www.priasoft.com/downloads/msg/PST2MSG.exe

They also have a viewer product that looks very similar to outlook 2003
with regards to the User Interface. The viewer can view, search, print,
and export msg files.

Lastly, they just release a free ViewOnly viewer he
http://www.priasoft.com/msgview.exe


Regards,
the MSG Guru, Eriq VanBibber

  #3  
Old May 25th 06, 11:23 AM posted to microsoft.public.outlook.program_forms
GregCost
external usenet poster
 
Posts: 3
Default Automating Outlook .msg form works but email not sent immediat

Eriq, Thank you for the information - I will certainly look at priasoft, but
for this application I'm look for a native based .NET VB solution

" wrote:

MSG Files:

Priasoft has several MSG related products. http://www.priasoft.com

In particular, they have a MSG file parsing library that gives
developers access to all the properties of a .msg file, html body,
recipients, attachments..., without outlook.

They also have an export library that works with the MSG library for
exporting msg files to other formats, like PDF, TIF, and HTML.

A command line tool exists too that converts MSG files to XML files:
http://www.priasoft.com/downloads/ms...allMSG2XML.exe

For PST files, they have a couple of command line tools that allow
extraction of messages to MSG, again without requiring outlook, and it
supports both ANSI and UNICODE pst files. There is also the reverse, a
MSG to PST utility.
http://www.priasoft.com/downloads/ms...allMSG2PST.exe
http://www.priasoft.com/downloads/msg/PST2MSG.exe

They also have a viewer product that looks very similar to outlook 2003
with regards to the User Interface. The viewer can view, search, print,
and export msg files.

Lastly, they just release a free ViewOnly viewer he
http://www.priasoft.com/msgview.exe


Regards,
the MSG Guru, Eriq VanBibber


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom derfault message form works intermitently / inconsistently [email protected] Outlook - Using Forms 5 April 3rd 06 09:31 PM
Custom Form saved as *.msg file not opening correctly in Outlook 2 Jim S. Outlook - Using Forms 5 March 6th 06 04:35 PM
Outlook test works but real email gets 530 error Wizzer Outlook - Installation 2 February 1st 06 03:00 PM
Outlook form works on 2003 but not on 2000 Christian Kjr Outlook - Using Forms 2 January 20th 06 09:48 AM
Automating retrieving email addresses from 306 received emails? StargateFanFromWork Outlook - General Queries 6 January 10th 06 11:04 PM


All times are GMT +1. The time now is 06:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright 2004-2025 Outlook Banter.
The comments are property of their posters.