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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top