MailMessage.Load no longer reads From.Address after 22.1.0

Using the same test email and loading from a .msg into a MailMessage:
Version 22.1.0 sets the From.Address property as per the original file.
Version 22.2.0 and up to the current version 22.11.0 set the From.Address property to an empty string.

Sample project attached.

AsposeFromAddress.zip (3.6 MB)

Hello, @tims-1

We have created the EMAILNET-40872 investigation ticket.
We will let you know as soon as it is resolved.

Thanks.

Hi @DmitryS,

Any updates on the progress of the ticket?

Thanks,

Hi @tims-1

This is not an Aspose.Email bug, but expected behavior after improvement. The source file contains an Exchange-formatted sender address that cannot be assigned to the From field in MailMessage. So for the match to be displayed in Outlook, the From field contains only the DisplayName value. If you want to see the address of the From field in SMTP format, you can use the KeepOriginalEmailAddresses setting, as shown below. But in this case, there will be a difference when this message is displayed in Outlook.

MsgLoadOptions opt = new MsgLoadOptions();
opt.KeepOriginalEmailAddresses = true;
MailMessage message = MailMessage.Load(fileName, opt);

Thanks.

Hi @DmitryS,

That works, thank you.

Was this breaking change documented? I don’t see it on the page for the 22.2 release notes.

@tims-1

You can find Aspose.Email for .NET 2022 release notes from here:

Hi @tahir.manzoor,

Which one contains this breaking change and it’s workaround?

@tims-1

Yes, the EMAILNET-40537 ticket is mentioned in the table, but it isn’t mentioned that it is a breaking change. This is an oversight from our side. Sorry for the inconvenience.
Thank you.

Ok no worries, thanks for the info.