Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
dlg.FileName = "Document";
dlg.DefaultExt = ".txt";
dlg.Filter = "Text documents (.txt)|*.*";
Nullable<bool> result = dlg.ShowDialog();
if (result == true)
{
string filename = dlg.FileName;
mMailMessage.Attachments.Add(new Attachment(filename));
}
File attachments in Mail in WPF
How to send file attachment in an email using WPF and C#.

Prafull ShrivastavaPosted May 1, 2011, 11:09 PM EDT
it is very helpful for me