|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
outlook html bodyformat
Can someone tell me how to make the html codes in the following mail example work (how to set bodyformat to text/html)?
Thanks! Code:
Set ol=CreateObject("Outlook.Application")
Set Mail=ol.CreateItem(0)
Mail.to="pieterprovoost@tiscali.be"
Mail.Subject="hi there"
Mail.Body="<html><body><p><font color="#FFBB00">testing</font></p></body></html>"
Mail.Send
ol.Quit
|
|
#2
|
|||
|
|||
|
I would assume something like -
Mail.Format="html"
__________________
How can I soar like an eagle when I'm flying with turkey's? |
|
#3
|
|||
|
|||
|
Doesn't work... I have tried about every possible line. The mail itself is "mixed/multipart", since there is an attachment, it's the body that should be "text/html"...
|
|
#4
|
|||
|
|||
|
What about putting <head></head> tags in your body.
i.e. <html><head>header meta codes</head><body>body stuff</body></head> |
|
#5
|
|||
|
|||
|
Use Mail.HTMLBody instead of Mail.Body
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > outlook html bodyformat |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|