I\'m building a console app that moves data into an excel file (using EPPlus library). I\'m saving the ExcelPackage as a MemoryStream, and I want to attach it to an email. How
After some more searching, I found the solution. Apparently I needed to explicitly set the starting position of the MemoryStream before I passed it in as an attachment. The following line of code did the trick: