Open Outlook

Hi, i need to know how to do this:

In my appliaction i have the email of a person and a text to send to that person. Throught a button i want to open Outlook, ready to send the email to that person with that text.

I have this (but i don't know how to open Outlook ready to send an email):

privatevoid menuItem2_Click(object sender,EventArgs e)

{

//MessagingApplication.SwitchToAccount("nms");

//ChooseContactDialog contactDialog = new ChooseContactDialog();

// contactDialog.Title = "Select user to send message";

// if (contactDialog.ShowDialog() == DialogResult.OK)

// {

EmailMessage message =newEmailMessage();

//message.To.Add(new Recipient(contactDialog.SelectedContact.Email1Address));

message.To.Add(newRecipient("myemail"));

message.Subject ="zzzzzz";

message.BodyText ="zzzzzzzz";

//message.Attachments.Add(new Attachment(@"\My Documents\Sessions.xls"));

using (OutlookSession session =newOutlookSession())

{ session.EmailAccounts[0].Send(message); }

// }

}

How can i have this working? Having the outlook with all these fields filled ?

Thanks

[2679 byte] By [TesteEste] at [2007-12-24]
# 1
Try using MessagingApplication.DisplayComposeForm(yourMessage) or one of the other overrides that takes a bunch of string parameters
AlexFeinman at 2007-8-31 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...