Hello, im working on an application in asp.net mvc, and im stucked at download. I did it before with a forms application, but now i dont have a clue how should i do it because emails are not stored yet.
Is it possible to create a download module in mvc?
foreach (MailBox m in email.From)
{
fileName = string.Format("" +_folderPath + @"\email_{0}{1}.eml",
counter,
m.Address);
fileName = fileName.Replace(@"\\", @"\");
File.WriteAllBytes(fileName, eml);
}
Are there any alternative to do this? Or some documentation where i can start from?
Regards