Hi,
I'm using the code under here to make a mail in Outlook and display it.
I would like to be able to use the standard template/stationary I use in
Outlook.
It's HTML with som tables, pictures and stuff.
How can I do that?
The mailcode:
public Mail(string mailadr1, string mailbody1, string mailsub1, string
mailatt1)
{
oApp = new Outlook.Applica tion();
oNameSpace = oApp.GetNamespa ce("MAPI");
oMailItem =
(Outlook._MailI tem)oApp.Create Item(Outlook.Ol ItemType.olMail Item);
oMailItem.To=ma iladr1;
oMailItem.Subje ct=mailsub1;
oMailItem.Body= mailbody1;
myAttach = oMailItem.Attac hments.Add(mail att1, 1, 1,mailatt1);
}
public void Display()
{
oMailItem.Displ ay(oMailItem);
}
}
Best regards
Mads