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 / May 2008

Tip: Looking for answers? Try searching our database.

Outlook Redemption - Text Only

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Terry - 09 May 2005 21:26 GMT
Im using the code below, but need to ensure that the mail is sent as Text
only with
no HTML  included. What do I need to change please?

Regards

Set SafeItem = CreateObject("Redemption.SafeMailItem")
' create the Outlook session
Set objOutlook = CreateObject("Outlook.Application")
Set objNS = objOutlook.GetNamespace("MAPI")
objNS.Logon
' create the Message
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
SafeItem.Item = objOutlookMsg
With SafeItem
   .Recipients.Add "Call Update<" & strRecipient & ">"
   .Subject = strSubject
   .Body = strBody
   '.Display
   .Save
   .Send
End With
Set objOutlookMsg = Nothing
Set objNS = Nothing
Set objOutlook = Nothing
Set SafeItem = Nothing
Dmitry Streblechenko - 10 May 2005 19:02 GMT
See http://www.dimastr.com/redemption/faq.htm#11 for an example that sends
using HTML.
You will need to use BODY_ENCODING_TEXT (0) instead of
BODY_ENCODING_TEXT_AND_HTML and EDITOR_FORMAT_PLAINTEXT instead of
EDITOR_FORMAT_HTML.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Im using the code below, but need to ensure that the mail is sent as Text
> only with
[quoted text clipped - 22 lines]
> Set objOutlook = Nothing
> Set SafeItem = Nothing
Terry - 15 May 2005 23:57 GMT
Thank you Dmitry,

Best regards

> See http://www.dimastr.com/redemption/faq.htm#11 for an example that sends
> using HTML.
[quoted text clipped - 33 lines]
>> Set objOutlook = Nothing
>> Set SafeItem = Nothing
Terry - 17 May 2005 20:33 GMT
Hi Dmitry,

I'm not too sure how to declare the variables, such as
PR_InetMailOverrideFormat.

Regards
Terry

> See http://www.dimastr.com/redemption/faq.htm#11 for an example that sends
> using HTML.
[quoted text clipped - 33 lines]
>> Set objOutlook = Nothing
>> Set SafeItem = Nothing
Dmitry Streblechenko - 18 May 2005 17:57 GMT
4 bytes integer.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Hi Dmitry,
>
[quoted text clipped - 41 lines]
>>> Set objOutlook = Nothing
>>> Set SafeItem = Nothing
Terry - 25 May 2005 07:58 GMT
Hi Dmitry,

Works great now, many thanks

Regards
Terry

>4 bytes integer.
>
[quoted text clipped - 48 lines]
>>>> Set objOutlook = Nothing
>>>> Set SafeItem = Nothing
aruna jyothi - 15 May 2008 03:59 GMT
Hi,

I would like to copy a range of data from Excel to outlook in HTML format
using Redemption. My clients are using variant versions of outlook and we
don't want to use Word as editor.
Teh excel range is contains Colour formatting and Text boxes.
Is anyone provide me the code for this from Visual Basic please.

Thanks in advance.

url:http://www.ureader.com/msg/1081396.aspx
Dmitry Streblechenko - 17 May 2008 17:09 GMT
Construct the HTML and set the HTMLBody property.

Signature

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-

> Hi,
>
[quoted text clipped - 7 lines]
>
> url:http://www.ureader.com/msg/1081396.aspx
 
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.