H
Hans Schmidt
Hello,
i want to save a mail in a .eml file. Therefore i have following code:
private void buttonCBB_Click(Office.CommandBarButton ctrl, ref bool
cancel)
{
if (selection[1] is Outlook.MailItem)
{
Outlook.MailItem mailItem = selection[1] as Outlook.MailItem;
RDOMail mail = rsession.GetMessageFromID(mailItem.EntryID,
Type.Missing, Type.Missing);
mail.SaveAs(@"c:\test.eml",
Redemption.RedemptionSaveAsType.olRFC822);
}
}
Everything works perfect. In mail i can access everything from
RDOMail.
But if mail.saveas is called nothing happened. If i debug the code der
debugger
doesn't go on, if there is additional code is behind saveas it will
not performed.
Can anybody tell me what i do wrong?
Greets Hans
i want to save a mail in a .eml file. Therefore i have following code:
private void buttonCBB_Click(Office.CommandBarButton ctrl, ref bool
cancel)
{
if (selection[1] is Outlook.MailItem)
{
Outlook.MailItem mailItem = selection[1] as Outlook.MailItem;
RDOMail mail = rsession.GetMessageFromID(mailItem.EntryID,
Type.Missing, Type.Missing);
mail.SaveAs(@"c:\test.eml",
Redemption.RedemptionSaveAsType.olRFC822);
}
}
Everything works perfect. In mail i can access everything from
RDOMail.
But if mail.saveas is called nothing happened. If i debug the code der
debugger
doesn't go on, if there is additional code is behind saveas it will
not performed.
Can anybody tell me what i do wrong?
Greets Hans