B
bad_clone
Hi,
I'm creating an Outlook Mail using the following piece of code (C#):
// Creates a new Outlook Application Instance
Outlook.Application outlook = new Outlook.Application();
// Creating a new Outlook Message from the Outlook Application Instance
Outlook.MailItem mic =
(Outlook.MailItem)(outlook.CreateItem(Outlook.OlItemType.olMailItem));
// Assigns the "TO"
mic.To = "(e-mail address removed)";
// Assigns the Subject Field
mic.Subject = subject;
// Define the Mail Message Body. In this example, you can add in HTML
content to the mail message body
mic.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
mic.HTMLBody = "test";
// Display using Outlook
mic.Display(false);
I would like to know how to set the "From" field. How should I proceed?
I'm using Outlook 12.
Thanks
I'm creating an Outlook Mail using the following piece of code (C#):
// Creates a new Outlook Application Instance
Outlook.Application outlook = new Outlook.Application();
// Creating a new Outlook Message from the Outlook Application Instance
Outlook.MailItem mic =
(Outlook.MailItem)(outlook.CreateItem(Outlook.OlItemType.olMailItem));
// Assigns the "TO"
mic.To = "(e-mail address removed)";
// Assigns the Subject Field
mic.Subject = subject;
// Define the Mail Message Body. In this example, you can add in HTML
content to the mail message body
mic.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
mic.HTMLBody = "test";
// Display using Outlook
mic.Display(false);
I would like to know how to set the "From" field. How should I proceed?
I'm using Outlook 12.
Thanks