Using Aspose.Email 17.5 we receive an error of ArgumentException: “The reply to address is not in a recognized format.” when calling MapiMessage.FromMailMessage(mailMessage). The reply-to address value is “islamic@ldlpmxap01”. Thunderbird can open the EML and display the reply-to address without any problems.
I realise the address is not in the correct format, but I feel like this shouldn’t be a critical error - perhaps the reply-to address could be left as null?
using (var mailMessage = MailMessage.Load(emlPath, new EmlLoadOptions()))
using (var mapiMessage = MapiMessage.FromMailMessage(mailMessage))
{
// etc
}
I will attach an example EML.
Thanks
Hi Reuben,
Thank you for writing to Aspose support team.
You may please use following sample code to load the email without any error and share the feedback.
using (var mailMessage = MailMessage.Load(@“Test reply to issue.eml”, new EmlLoadOptions()))
using (var mapiMessage = MapiMessage.FromMailMessage(mailMessage, new MapiConversionOptions() { PreserveOriginalAddresses = true}))
{
// etc
}