PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Sending HTML Email Programatically using Outlook 2002
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Sending HTML Email Programatically using Outlook 2002
![]() |
Sending HTML Email Programatically using Outlook 2002 |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
The following code used to work fine in Outlook 2000, now with Outlook 2002
it doesn't. Now it leaves a BLANK body. Can anyone tell me why this no longer works? Also, we try the same thing with an RTF type file as the body (.body property), and it just puts junk in the body and does not interpret it as a RTF file. Thanks. Bob ***************************************************** oOutlook = CREATEOBJECT("outlook.application") oMail = oOutLook.CreateItem(0) WITH oMail oRecipient = .Recipients.Add("test@test.com") oRecipient.type = 1 .Subject = "THIS IS A TEST" .bodyformat = 2 && This new property doesn't seem to have any effect on a send. .HTMLBody = "<HTML><H2>My HTML page.</H2><BODY>My body.</BODY></HTML>" .send ENDWITH |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Do you have the latest IE updates installed? There was an issue with
some earlier updates for IE that screwed up the HTML rendering engine. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginners Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Microsoft" <jmail@marketware.us> wrote in message news:u36PTIi9DHA.2760@TK2MSFTNGP09.phx.gbl... > The following code used to work fine in Outlook 2000, now with Outlook 2002 > it doesn't. Now it leaves a BLANK body. > Can anyone tell me why this no longer works? Also, we try the same thing > with an RTF type file as the body (.body property), and it just puts junk in > the body and does not interpret it as a RTF file. > > Thanks. > > Bob > > ***************************************************** > > oOutlook = CREATEOBJECT("outlook.application") > oMail = oOutLook.CreateItem(0) > > WITH oMail > > oRecipient = .Recipients.Add("test@test.com") > oRecipient.type = 1 > > .Subject = "THIS IS A TEST" > > .bodyformat = 2 && This new property doesn't seem to have any effect on > a send. > > .HTMLBody = "<HTML><H2>My HTML page.</H2><BODY>My body.</BODY></HTML>" > .send > > ENDWITH > > > > > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
How do get the lastest?
It is doing it on more than one PC here, both are running XP and we are getting updates from Microsoft using their update service. Bob *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Windows Update would have the latest versions available.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginners Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Bob Bartel" <bob@marketware.us> wrote in message news:%236KhXLk9DHA.3648@TK2MSFTNGP11.phx.gbl... > How do get the lastest? > > It is doing it on more than one PC here, both are running XP and we are > getting updates from Microsoft using their update service. > > Bob > > > > *** Sent via Developersdex http://www.developersdex.com *** > Don't just participate in USENET...get rewarded for it! |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

