We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unable to extract metadata "Delivered-To" and "Return-Path" from

Hi Support team,

We are trying to extract metadata “Delivered-To” and “Return-Path” from .eml message. Could you please help us directing to correct API. Attached is the sample eml file we are using.

Hi,


Thank you for writing to Aspose Support team.

Please use the following code sample to read this information from the EML file and let us know if you have any further query in this regard.

Sample Code:

MailMessage eml = MailMessage.load(“828929\Re- AFT good progress[16].eml”);

System.out.println(eml.getHeaders().get(“Delivered-To”));

System.out.println(eml.getHeaders().get(“Return-Path”));