V
Vlasta
Can anybody help me how to choose acount in Outlook 2007 in c#? I have C#
application and I need to send from that application email, but not with
current acount, but with acount I choose. I try it with
mailItem.sendUsingAcount , but with no result.
My code looks like this:
Outlook.Application outlook = new Outlook.Application();
Outlook.MailItem mailItem =
(Outlook.MailItem)outlook.CreateItem(Outlook.OlItemType.olMailItem);
mailItem.Subject = "somethink";
mailItem.To = "email adres";
mailItem.Body = "Text in body";
mailItem.Importance = Outlook.OlImportance.olImportanceLow;
mailItem.Display(false);
mailItem.Send();
Thanks for answer Vlasta
application and I need to send from that application email, but not with
current acount, but with acount I choose. I try it with
mailItem.sendUsingAcount , but with no result.
My code looks like this:
Outlook.Application outlook = new Outlook.Application();
Outlook.MailItem mailItem =
(Outlook.MailItem)outlook.CreateItem(Outlook.OlItemType.olMailItem);
mailItem.Subject = "somethink";
mailItem.To = "email adres";
mailItem.Body = "Text in body";
mailItem.Importance = Outlook.OlImportance.olImportanceLow;
mailItem.Display(false);
mailItem.Send();
Thanks for answer Vlasta