View Single Post
  #3  
Old October 27th 06, 04:43 PM posted to microsoft.public.outlook.program_vba
news.microsoft.com
external usenet poster
 
Posts: 65
Default Outlook 2003 Script: HTML Mail

Hi Sue,

3) solved it'was easy tks sue
2) I'll take a look

1)here a part of the code
sub SendAlertButton_click()

' THIS IS THE CONTENT OF THE BODY OF MY

' TASK THAT I WANT TO ADD TO THE CONTENT OF HTML MALI

StrBB = item.body

Set myItem = Application.CreateItem(0)

StrHTML = "HTMLbiH1This is the Header of my
mail/H1/i/bbrbrhrp align=""center"" img
src=""\\MyComputer\myfolder\Images\MyImage.bmp""
/PhrbrbrbrpH2 style=""color:red""This some infomation about
the content/H2bra
/a/p brPscript
type=text/vbscriptdocument.write(item.body)/script/P/HTML"

'HERE ARE THE DIFFERENT THINGS I TRYED

StrHTML = StrHTML & "p" & strDetails & "/p"

myitem.HTMLBody = StrHTML

'myitem.Body = StrHTML + StrBB

myitem.htmlBody = myitem.htmlbody & "HTMLMMMMMMMMMMMMMMMMMMM/HTML"

myitem.Display

myitem.HTMLBody = StrHTML + StrBB

End Sub

================================================== ===============



"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
1) Show a code snippet to illustrate the problem. Remember that the content
of HTMLBody must be fully tagged, consistent HTML code, just like in a web
page.

2) See http://www.outlookcode.com/d/code/htmlimg.htm

3) Use font tags, just as you would in a web page.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"news.microsoft.com" wrote in message
...
Hi all,

I made a custom task wich generate and send an e-mail (HTML), I used
HTML.body

I have 3 pb

1) How to add variable (some text) to the HTML body ? when I add
something
all the content of the Html is replaced by the text I added and the body
switch to Text format....

2) I added an image (logo) to the HTML mail but when the mail is received
the place of the image is empty

3) I want to use different color in my Html mail but I fail to use more
than one color , it always take the last color I used

Tks fo help




Ads