![](/img/trans.png)
[英]Microsoft graph how to add Office 365 Voting Buttons to an e-mail Message
[英]How to send digitally signed e-mail using with Microsoft Graph?
我可以使用下面的代码使用 Microsoft Graph 发送电子邮件。 但是,我需要发送数字签名的电子邮件,但不知道如何?
ClientSecretCredential credentials = new ClientSecretCredential(
"--TenantId--",
"--ClientId--",
"--Secret--",
new TokenCredentialOptions { AuthorityHost = AzureAuthorityHosts.AzurePublicCloud });
GraphServiceClient graphServiceClient = new GraphServiceClient(credentials);
Message message = new Message
{
Subject = "Test",
Body = new ItemBody
{
ContentType = BodyType.Html,
Content = "Some text"
},
ToRecipients = new List<Recipient>()
{
new Recipient { EmailAddress = new EmailAddress { Address = "somebody@somewhere.com" }}
}
};
graphServiceClient
.Users["--UserId--"]
.SendMail(message, false)
.Request()
.PostAsync().Wait();
AFAIK 没有规定使用 MS 图发送数字签名的电子邮件,但您可以为此提出功能请求。
希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.