![](/img/trans.png)
[英]performanceMeasurement.startMeasurement error when using @azure-msal-angular for Microsoft AD authentication
[英]Sending emails between accounts using Microsoft Graph using Azure AD produces invalid IP error
我在公元 Azure 注冊了一個守護程序應用程序,並正在創建一個 class 來做一些基本的事情,比如發送和刪除電子郵件,但是當我嘗試在兩個 @*.onmicrosoft.com email 框之間發送時出現錯誤。 例如,我可以從 Gmail 發送到這些電子郵件,但由於某種原因不能在兩封電子郵件之間發送。
我發送郵件的方式如下:
public async Task Send(string[] to, string subject, string body, FileInfo[] attachments = null, bool saveToSentItems = true, bool isBodyHTML = false)
{
var msg = new Message
{
Subject = subject,
Body = new ItemBody { ContentType = (isBodyHTML) ? BodyType.Html : BodyType.Text, Content = body },
ToRecipients = to.ToList().Select(x => new Recipient() { EmailAddress = new EmailAddress { Address = x } })
};
await graphClient.Users[email].SendMail(msg, saveToSentItems).Request().PostAsync();
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.