A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlk 2k3 Script: HtmlMail



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 22nd 06, 11:44 AM posted to microsoft.public.outlook.program_vba
news.microsoft.com
external usenet poster
 
Posts: 65
Default Outlk 2k3 Script: HtmlMail

Hi All,

I use a personal task form that create aHtml mail with some Task item
properties and add the task.body to the mail.body

All is working fine, but if the task body contain these caracter ""
all the text after is ignored in my mail body

I know that "" represent a break in HTML so how can resolve this Pb

Tks



Ads
  #2  
Old November 22nd 06, 03:53 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlk 2k3 Script: HtmlMail

Show the code you're using. Are you setting Body or HTMLBody?

You do know that the Body of task and other items is RTF and an email Body
is plain text? Are you massaging the data to account for that difference?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


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

I use a personal task form that create aHtml mail with some Task item
properties and add the task.body to the mail.body

All is working fine, but if the task body contain these caracter ""
all the text after is ignored in my mail body

I know that "" represent a break in HTML so how can resolve this Pb

Tks




  #3  
Old November 25th 06, 04:35 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlk 2k3 Script: HtmlMail

You must convert those characters to the proper HTML token, i.e. < and >. Use the Replace() function.

--
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 use a personal task form that create aHtml mail with some Task item
properties and add the task.body to the mail.body

All is working fine, but if the task body contain these caracter ""
all the text after is ignored in my mail body

I know that "" represent a break in HTML so how can resolve this Pb

Tks



  #4  
Old November 29th 06, 10:35 AM posted to microsoft.public.outlook.program_vba
news.microsoft.com
external usenet poster
 
Posts: 65
Default Outlk 2k3 Script: HtmlMail

Hi Sue,

I put my task body in a string

strbb = item.body

then I put all this in HTML Mail BODY
StrHTML = "hr"& StrHTML & "hr" & "pprefont size=2 face=Arial" &
strbb & "/Font/pre/p" & Signature & disclaimer




"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
You must convert those characters to the proper HTML token, i.e. < and
>. Use the Replace() function.

--
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 use a personal task form that create aHtml mail with some Task item
properties and add the task.body to the mail.body

All is working fine, but if the task body contain these caracter ""
all the text after is ignored in my mail body

I know that "" represent a break in HTML so how can resolve this Pb

Tks





  #5  
Old November 29th 06, 12:52 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlk 2k3 Script: HtmlMail

Again, you need to work on strbb -- using Replace() to work on the and characters and also using it to replace vbCrLf with brbr so that you can preserve line breaks.

--
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 Sue,

I put my task body in a string

strbb = item.body

then I put all this in HTML Mail BODY
StrHTML = "hr"& StrHTML & "hr" & "pprefont size=2 face=Arial" &
strbb & "/Font/pre/p" & Signature & disclaimer




"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
You must convert those characters to the proper HTML token, i.e. < and
>. Use the Replace() function.

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

I use a personal task form that create aHtml mail with some Task item
properties and add the task.body to the mail.body

All is working fine, but if the task body contain these caracter ""
all the text after is ignored in my mail body

I know that "" represent a break in HTML so how can resolve this Pb

Tks





 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlk 2k3 Script: Saving Excel File programticaly from OUTLOOK SCRIPT news.microsoft.com Outlook and VBA 3 November 22nd 06 04:33 PM
Outlk 2k3 Script: Find and findNext use news.microsoft.com Outlook and VBA 1 November 21st 06 03:44 PM
Outlk 2k3 script: How to get the name of the month news.microsoft.com Outlook and VBA 2 November 21st 06 03:35 PM
Outlk 2k3 script: Tab in body Task "space to separate text" news.microsoft.com Outlook and VBA 1 November 17th 06 03:13 PM
Outlk 2k3 Script: Pb Using Find function Help plz!!! news.microsoft.com Outlook and VBA 1 November 15th 06 04:40 PM


All times are GMT +1. The time now is 07:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.