1
EWSで送信されたアイテムをループして、送信された各メール、受信者、件名、本文などの詳細を表示しようとしています。どのように受信者の電子メールアドレスを取得するには? マイコード:EWSで送信された電子メールから受信者の電子メールを取得する方法は?
ItemId id = (ItemId)Request["id"]; // this id is the item id of WellKnownFolderName.**SentItems**
EmailMessage current = EmailMessage.Bind(service, id);
La_Subject.Text = current.Subject;
La_From.Text = current.Sender.ToString();
La_Sent.Text = current.DateTimeReceived.ToString();
La_To.Text = current.ReceivedBy.ToString(); // This line error occurs
ご存じですか?
"EmailMessage"オブジェクトを使ってみると、必要なデータ(From、To、CcおよびBccRecipients)を含むItemSchemaの代わりにEmailMessageSchemaを使用する必要があると思いました。練習で学ぶ:) – Jelmer