Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Outlook
bcm
calendaring
contacts
fax
general
installation
interop
outlook
printing
program_addins
program_forms
program_vba
teamfolders
thirdpartyutil
  
 
date: Mon, 9 May 2005 21:26:00 +0100,    group: microsoft.public.outlook.program_vba        back       


Outlook Redemption - Text Only   
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
date: Mon, 9 May 2005 21:26:00 +0100   author:   Terry

Re: Outlook Redemption - Text Only   
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

"Terry"  wrote in message 
news:%2382XMVNVFHA.928@TK2MSFTNGP15.phx.gbl...
> 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
>
>
date: Tue, 10 May 2005 11:02:31 -0700   author:   Dmitry Streblechenko

Re: Outlook Redemption - Text Only   
Thank you Dmitry,

Best regards

"Dmitry Streblechenko"  wrote in message 
news:eUuewpYVFHA.2676@TK2MSFTNGP10.phx.gbl...
> 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
>
> "Terry"  wrote in message 
> news:%2382XMVNVFHA.928@TK2MSFTNGP15.phx.gbl...
>> 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
>>
>>
>
>
date: Sun, 15 May 2005 23:57:23 +0100   author:   Terry

Re: Outlook Redemption - Text Only   
Hi Dmitry,

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

Regards
Terry

"Dmitry Streblechenko"  wrote in message 
news:eUuewpYVFHA.2676@TK2MSFTNGP10.phx.gbl...
> 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
>
> "Terry"  wrote in message 
> news:%2382XMVNVFHA.928@TK2MSFTNGP15.phx.gbl...
>> 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
>>
>>
>
>
date: Tue, 17 May 2005 20:33:43 +0100   author:   Terry

Re: Outlook Redemption - Text Only   
4 bytes integer.

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

"Terry"  wrote in message 
news:OEbtQdxWFHA.2128@TK2MSFTNGP15.phx.gbl...
> Hi Dmitry,
>
> I'm not too sure how to declare the variables, such as 
> PR_InetMailOverrideFormat.
>
> Regards
> Terry
>
> "Dmitry Streblechenko"  wrote in message 
> news:eUuewpYVFHA.2676@TK2MSFTNGP10.phx.gbl...
>> 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
>>
>> "Terry"  wrote in message 
>> news:%2382XMVNVFHA.928@TK2MSFTNGP15.phx.gbl...
>>> 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
>>>
>>>
>>
>>
>
>
date: Wed, 18 May 2005 09:57:52 -0700   author:   Dmitry Streblechenko

Re: Outlook Redemption - Text Only   
Hi Dmitry,

Works great now, many thanks

Regards
Terry

"Dmitry Streblechenko"  wrote in message 
news:uUHQEr8WFHA.3188@TK2MSFTNGP09.phx.gbl...
>4 bytes integer.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool
>
> "Terry"  wrote in message 
> news:OEbtQdxWFHA.2128@TK2MSFTNGP15.phx.gbl...
>> Hi Dmitry,
>>
>> I'm not too sure how to declare the variables, such as 
>> PR_InetMailOverrideFormat.
>>
>> Regards
>> Terry
>>
>> "Dmitry Streblechenko"  wrote in message 
>> news:eUuewpYVFHA.2676@TK2MSFTNGP10.phx.gbl...
>>> 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
>>>
>>> "Terry"  wrote in message 
>>> news:%2382XMVNVFHA.928@TK2MSFTNGP15.phx.gbl...
>>>> 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
>>>>
>>>>
>>>
>>>
>>
>>
>
>
date: Wed, 25 May 2005 07:59:50 +0100   author:   Terry

Re:Outlook Redemption - Text Only   
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
date: Thu, 15 May 2008 10:59:32 +0800   author:   aruna jyothi

Re: Re:Outlook Redemption - Text Only   
Construct the HTML and set the HTMLBody property.

-- 
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-
"aruna jyothi"  wrote in message 
news:6b13dafd62e34130a38b068e161da262@newspe.com...
> 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
date: Sat, 17 May 2008 09:09:10 -0700   author:   Dmitry Streblechenko

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us