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

