Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 21st, 2003, 11:04 PM
pieterprovoost pieterprovoost is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Brugge, Belgium
Posts: 30 pieterprovoost User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 16 m 17 sec
Reputation Power: 6
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

Reply With Quote
  #2  
Old June 22nd, 2003, 01:18 AM
mohecan mohecan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Melbourne, Australia
Posts: 212 mohecan User rank is Private First Class (20 - 50 Reputation Level)mohecan User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I would assume something like -
Mail.Format="html"
__________________
How can I soar like an eagle when
I'm flying with turkey's?

Reply With Quote
  #3  
Old June 22nd, 2003, 05:51 AM
pieterprovoost pieterprovoost is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Brugge, Belgium
Posts: 30 pieterprovoost User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 16 m 17 sec
Reputation Power: 6
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"...

Reply With Quote
  #4  
Old June 22nd, 2003, 06:03 PM
mohecan mohecan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Melbourne, Australia
Posts: 212 mohecan User rank is Private First Class (20 - 50 Reputation Level)mohecan User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
What about putting <head></head> tags in your body.

i.e.
<html><head>header meta codes</head><body>body stuff</body></head>

Reply With Quote
  #5  
Old November 24th, 2003, 02:49 AM
jondoe jondoe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Durban, South Africa
Posts: 1 jondoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Use Mail.HTMLBody instead of Mail.Body

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > outlook html bodyformat


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway