mdriver
Guest
|
I am creating messages using Outlook11 model:
oMailitem = oOutlook.CreateItem(Outlook.OlItemType.olMailItem)
oMailitem.To = ToAddr
oMailitem.CC = ccAddr
oMailitem.BCC = bccAddr
oMailitem.Subject = subject
Item.HTMLBody = Replace(body, Chr(10), "<br>", 1, , CompareMethod.Text) |
|
mdriver
Guest
|
Opps hit space before I had finished. I will start again:
I am creating messages using Outlook11 model:
oMailitem = oOutlook.CreateItem(Outlook.OlItemType.olMailItem)
oMailitem.To = ToAddr
oMailitem.CC = ccAddr
oMailitem.BCC = bccAddr
oMailitem.Subject = subject
Item.HTMLBody = Replace(body, Chr(10), "<br>", 1, , CompareMethod.Text)
oMailitem.Save()
oMailitem.Display()
When the e-mail gets displayed the text in the body is created correctly but it has the outlook detault Times Roman 12pt formatting. The users have set customer font and colours for their e-mails which gets applied in Outlook when they click new e-mail.
Anybody know how to apply the the outlook new e-mail format settings to my e-mails that are created automatically in code.
thx
Matt |
|
Sergey Grischenko
Add-in Express team
Posts: 7235
Joined: 2004-07-05
|
Hi Matt.
I think you can use HTML tags to apply formatting for a new e-mail.
Just click on the "View Source" option in the context menu of Outlook inspector and you will see the HTML source of an e-mail (e-mail must be in HTML format). Use this HTML as an example to create your own HTML template.
|
|