我在通过 Microsoft Graph API 发送电子邮件时添加了取消订阅标头,但它仍然没有在电子邮件中添加 List-Unsubscriber 标头。
Dim HeaderOptions = New List(Of [Option]) From {
New HeaderOption("List-Unsubscribe", "<mailto:unsubscribe@example.com?subject=unsubscribe>"),
New HeaderOption("priority", "High")
}
graphClient.Users(FromEmail).SendMail(objMessage, True).Request(HeaderOptions).PostAsync().Wait()