From 107432631e0f2a2d78d269212655d14c715e28ff Mon Sep 17 00:00:00 2001 From: "YUKI \"Piro\" Hiroshi" Date: Thu, 13 Apr 2023 19:40:41 +0900 Subject: [PATCH] Use property accessor for recipient instead of user --- Dialog/Helper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dialog/Helper.cs b/Dialog/Helper.cs index 6cda3a7..5a4d8d3 100644 --- a/Dialog/Helper.cs +++ b/Dialog/Helper.cs @@ -72,8 +72,8 @@ private void FromExchange(Outlook.Recipient recp) if (string.IsNullOrEmpty(PossibleAddress)) { QueueLogger.Log(" PrimarySmtpAddress is blank: trying to get it via PropertyAccessor"); - const string PR_SMTP_ADDRESS = "http://schemas.microsoft.com/mapi/proptag/0x39FE001E"; - PossibleAddress = user.PropertyAccessor.GetProperty(PR_SMTP_ADDRESS).ToString(); + const string PR_SMTP_ADDRESS = "https://schemas.microsoft.com/mapi/proptag/0x39FE001E"; + PossibleAddress = recp.PropertyAccessor.GetProperty(PR_SMTP_ADDRESS).ToString(); if (string.IsNullOrEmpty(PossibleAddress)) { QueueLogger.Log(" Couldn't get address");