My requirement is to generate and attach a file and send in an email automatically.
i have a existing functionality where i using the code below to write a CSV file in my local system.
[HTML]StreamWriter sw = File.CreateText (fileName)[/HTML]
[HTML]sw.Write(m_Mode l.Csv);[/HTML]
the new functionality is to attach the file to email and send automatically. i cannot store in some path and attach since access issues might come later.
Is there any other way to generate the CSV file and attach to email.
i have a existing functionality where i using the code below to write a CSV file in my local system.
[HTML]StreamWriter sw = File.CreateText (fileName)[/HTML]
[HTML]sw.Write(m_Mode l.Csv);[/HTML]
the new functionality is to attach the file to email and send automatically. i cannot store in some path and attach since access issues might come later.
Is there any other way to generate the CSV file and attach to email.
Comment