I am creating an email object in Outlook 2013, but I cannot find how to create a Sender object. I am using this code:
Outlook.MailItem mail = (Outlook.MailItem)
Globals.ThisAddIn.Application.CreateItem(Outlook.OlItemType.olMailItem);
mail.To = "mail@gmail.com"
mail.Sender =
mail.Subject = "Mail subject";
A Sender object is an implementation of an interface Outlook.AddressEntry, so there must be an implementation somewhere, but where? Is it possible to create this sender object?
BTW, the sender of the letter does not need an account registered in Outlook, so I can not use the property for this mail.SendUsingAccount.
source
share