使用Azure Web作业显示发件人电子邮件的名称
在我们的项目中,我们使用带有服务帐户的Azure Web作业发送电子邮件通知.要求发件人(服务帐户)的显示名称应为友好名称.
In our project we are sending email notifications using Azure web job with a service account. There is a requirement that the display name of the sender (service account) should be a friendly name.
因此,我们已经修改了代码以进行相同的操作,直到上个月,它仍能正常工作.从上个月开始,它不起作用,并且显示了服务帐户名称.
So we have modified our code to do the same and till last month it was working fine. From last month it is not working and it is showing the service account name.
下面是我们正在使用的代码段
Below is the code snippet which we are using
请分享您的意见以解决问题.
Please share your inputs to cross over the issue.
此致
Sudheer
感谢与问候,苏德海尔
新MailAddress("abc@xyz.com") ; 或 myMessage.From =新的EmailAddress("abc@xyz.com",虚拟名称")