- Azure Serverless Computing Cookbook
- Praveen Kumar Sreeram
- 65字
- 2021-07-02 20:23:11
Adding an attachment to the email
- Add the following code to the Run method of the RegisterUser function:
Attachment objAttachment = new Attachment();
objAttachment.Content = System.Convert.ToBase64String
(System.Text.Encoding.UTF8.GetBytes(emailContent));
objAttachment.Filename = firstname + "_" + lastname + ".log";
message.AddAttachment(objAttachment);
- Let's run a test using the same request payload that we have used in the previous recipes.
- This is the screenshot of the email, along with the attachment:

推薦閱讀
- Java語言程序設計
- Redis Applied Design Patterns
- R語言游戲數據分析與挖掘
- Mastering Scientific Computing with R
- Mastering Kali Linux for Web Penetration Testing
- Java程序設計入門
- C++反匯編與逆向分析技術揭秘(第2版)
- Mastering VMware Horizon 7(Second Edition)
- Learning Image Processing with OpenCV
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發技術
- 讓Python遇上Office:從編程入門到自動化辦公實踐
- 軟件開發中的決策:權衡與取舍
- Learning Scrapy
- Java Web開發系統項目教程
- KnockoutJS Essentials