- 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:

推薦閱讀
- 算法零基礎一本通(Python版)
- Java Web開發之道
- Learning Bayesian Models with R
- Java程序員面試算法寶典
- Instant 960 Grid System
- Python數據挖掘與機器學習實戰
- 西門子S7-200 SMART PLC編程從入門到實踐
- Java Web開發詳解
- Hands-On JavaScript for Python Developers
- Serverless Web Applications with React and Firebase
- JavaScript Concurrency
- Go Systems Programming
- Python語言及其應用(第2版)
- Spark Cookbook
- Developing Multi:Platform Apps with Visual Studio Code