Hello Guys,
iam using a save mail messages activity but mails are saving in different format and i cant open it.
This is the code
This is the saved outlook message format.
Hello Guys,
iam using a save mail messages activity but mails are saving in different format and i cant open it.
This is the code
This is the saved outlook message format.
You didn’t provided the file extention. Make sure you are passing file extension .eml in FilePath property.
Pass it like this
in_Config("GeneralPath").ToString+Now.ToString("yyyy")
+"\"+Now.ToString("MMMM")+".eml"
Ok @Gokul_Murali. How you are naming the emails? just suffix “.eml” to that.
For example with mail subject as file name
in_Config("GeneralPath").ToString+Now.ToString("yyyy")
+"\"+Now.ToString("MMMM")+"\"+yourMailObject.Subject+".eml"
It’s because of the special characters in mail subject not allowed in file name by windows. We will have to clean the subject string first.
strCleanedSubject = System.Text.RegularExpressions.Regex.Replace(MailSubject, "[<>:""/\\|?*]", " ")
Now use the cleaned subject as file name like this
in_Config("GeneralPath").ToString+Now.ToString("yyyy")
+"\"+Now.ToString("MMMM")+"\"+strCleanedSubject+".eml"
Thank you @ashokkarale
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.