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

Free Support Forum - aspose.com

Query for pst attachment


Hi,

if i have eml object that contain inline images,attachment,embedded images and having html or rtf or plain body then using of following code


if (!String.IsNullOrEmpty(f_tmpEmlPath))
{
MailMessage mailmessage = MailMessage.Load(f_tmpEmlPath);
MapiMessage mapimessage = MapiMessage.FromMailMessage(mailmessage);
m_ObjPersonalStorage = PersonalStorage.FromFile(p_pstFileName);
m_ObjPersonalStorage.GetFolderById(f_FolderInfoObj.DisplayName).AddMessage(mapimessage);
m_ObjPersonalStorage.Dispose();
}
so, it will be export to pst same as my eml object?
please reply soon.



Hi Pooja,


Since the MapiMessage is created from the EML MailMessage, it shouldn’t pose any problem adding it to the PST. All the contents of the EML will be retained in the MapiMessage and, hence, in the PST as well.