471,354 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Create Outlook 2003 mail with std Outlook template/stationary

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
Jan 3 '06 #1
0 1086

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.