Sending mail with attachments programmatically in ASP.NET

后端 未结 4 1808
轮回少年
轮回少年 2021-02-03 13:13

I am dynamically generating a number of different types of files based upon a GridView in ASP.NET - an Excel spreadsheet and a HTML file. I am doing so using this code (this is

4条回答
  •  情话喂你
    2021-02-03 13:47

    You can save the file contents into a byte array and then do this:

    Creating In-Memory Mail Attachments

提交回复
热议问题