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.Application();
oNameSpace = oApp.GetNamespace("MAPI");
oMailItem =
(Outlook._MailItem)oApp.CreateItem(Outlook.OlItemT ype.olMailItem);
oMailItem.To=mailadr1;
oMailItem.Subject=mailsub1;
oMailItem.Body=mailbody1;
myAttach = oMailItem.Attachments.Add(mailatt1, 1, 1,mailatt1);
}
public void Display()
{
oMailItem.Display(oMailItem);
}
}
Best regards
Mads