I am using the Save Mail Message activity (UiPath.Mail.Activities) to save sent eMails from Outlook (as .eml files). When I open the saved eMails the ‘Date Sent’ value is showing as ‘none’, however other values such as ‘To’, ‘From’, ‘Subject’, etc are all present.
@Gid - were you ever able to solve this? Thanks!
The problem is outlook cannot recognize the default date time format which is saved in eml file and thus, it cannot display or display as none when we open eml via outlook. So the solution is: convert format of sent date before we save it as eml. for instance:
datetime.ParseExact(item.Headers(“Date”),“dd/MM/yyyy HH:mm:ss”,System.Globalization.CultureInfo.InvariantCulture).ToString(“ddd d MMM yyyy HH:mm:ss”)