4

I'm working on asp.net mvc web application development, where I need to create a CSV file in-memory and send as attachment of email.

I had a look at this stack overflow solution below: Export C# List to Csv file

Unfortunately, this solution returns File Result and doesn't fit with my requirement.

Any help will be much appreciated.

1
  • 3
    An example of mailing an attachment from a memory stream: stackoverflow.com/questions/5336239/… Just try and put it together with the link that you posted in your question. SEt the mime type to text/csv. Hope this helps. Commented May 27, 2013 at 11:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.