H
hemaneelagiri via OfficeKB.com
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
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