View Single Post
  #1  
Old January 6th 10, 10:14 AM posted to microsoft.public.outlook.program_addins
hemaneelagiri via OfficeKB.com
external usenet poster
 
Posts: 22
Default want to launch outlook with attachemnet for new mail with c# code

hi
i want to lanuch outlook(default mail client) with an attachment
i am able to lanuch outlook with all except attachment
like bellow
string strAttach = "C:\\test.txt";
string mailto = string.Format("mailto:{0}?Subject={1}&Body={2}
&Attach={3}", "", "Test Mail", "Hema", strAttach);
//System.Diagnostics.Process.Start(mailto);

Process myProcess = new Process();
myProcess.StartInfo.FileName = mailto.ToString();
myProcess.StartInfo.UseShellExecute = true;
myProcess.StartInfo.RedirectStandardOutput = false;
myProcess.Start();
myProcess.Dispose();

but attachment is not coming

pelase help me

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/201001/1

Ads