Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / November 2006

Tip: Looking for answers? Try searching our database.

Outlk 2k3 Script: HtmlMail

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
news.microsoft.com - 22 Nov 2006 10:44 GMT
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
Ken Slovak - [MVP - Outlook] - 22 Nov 2006 14:53 GMT
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?

Signature

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

> Hi All,
>
[quoted text clipped - 7 lines]
>
> Tks
Sue Mosher [MVP-Outlook] - 25 Nov 2006 03:35 GMT
You must convert those characters to the proper HTML token, i.e. &lt; and &gt;.  Use the Replace() function.

Signature

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
 

> Hi All,
>
[quoted text clipped - 7 lines]
>
> Tks
news.microsoft.com - 29 Nov 2006 09:35 GMT
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>" & "<p><pre><font size=2 face=Arial>" &
strbb & "</Font></pre></p>" & Signature & disclaimer

You must convert those characters to the proper HTML token, i.e. &lt; and
&gt;.  Use the Replace() function.

Signature

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

> Hi All,
>
[quoted text clipped - 7 lines]
>
> Tks
Sue Mosher [MVP-Outlook] - 29 Nov 2006 11:52 GMT
Again, you need to work on strbb -- using Replace() to work on the < and > characters and also using it to replace vbCrLf with <br><br> so that you can preserve line breaks.

Signature

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
 

> Hi Sue,
>
[quoted text clipped - 20 lines]
>>
>> Tks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.