Creating New Messagen from Outlook with C#

T

Tarran

Hi All,

I've got my outlook c# com addin working but I want to simulate when you
press the "New Mail Message" button that creates a new message that the user
has to send. Much like the mailto: function in html.

Does anyone know how I would go about this?

Many Thanks,
Tarran
 
T

Tarran

BTW - When I say like the mailto: function I don't actually mean the mailto
function through
System.Diagnostics.Process.Start("mailto:[email protected]"); because of the
length limitations.

I am trying to compose a new mail programmatically; add recipients and then
display the composed message on the users screen.
 
K

Ken Slovak - [MVP - Outlook]

Use the Object Browser to find what's available to you in Outlook coding.
You can use Application.CreateItem(0) to create a new mail item. Then use
the Recipients collection of that item and Add whatever recipients you want.
Make sure to resolve them. Then use the mail item's Display method to show
it.
 
Top