Skip to content

Commit

Permalink
Use property accessor for recipient instead of user
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jul 3, 2023
1 parent 28d069a commit 1074326
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dialog/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 1074326

Please sign in to comment.