I need some guidance on how to call, invoke or execute when I have a file saved from this:
using (TextWriter fn = new StreamWriter(outputDirectory + "\\SomeName" + DateTime.Now.ToString() + ".csv")). ...etc so a file will be generated like this: SomeName08/01/2022: 12:00:00.csv. I want to be able toinclude this variable fn as a file attachment to be sent out to email recipients.
Any idea on how to achive this?
using (TextWriter fn = new StreamWriter(outputDirectory + "\\SomeName" + DateTime.Now.ToString() + ".csv")). ...etc so a file will be generated like this: SomeName08/01/2022: 12:00:00.csv. I want to be able toinclude this variable fn as a file attachment to be sent out to email recipients.
Any idea on how to achive this?