書名: Azure Serverless Computing Cookbook作者名: Praveen Kumar Sreeram本章字?jǐn)?shù): 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:

推薦閱讀
- Practical Internet of Things Security
- Mastering Concurrency in Go
- Visual FoxPro 程序設(shè)計(jì)
- AngularJS深度剖析與最佳實(shí)踐
- 零基礎(chǔ)入門學(xué)習(xí)Python
- 程序設(shè)計(jì)基礎(chǔ)教程:C語言
- Apache Kafka Quick Start Guide
- MATLAB for Machine Learning
- 遠(yuǎn)方:兩位持續(xù)創(chuàng)業(yè)者的點(diǎn)滴思考
- Microsoft Dynamics GP 2013 Cookbook
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發(fā)技術(shù)
- Python趣味創(chuàng)意編程
- Analytics for the Internet of Things(IoT)
- R語言編程基礎(chǔ)
- Mastering Wireless Penetration Testing for Highly Secured Environments