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

How to set CC @ Outlook Redemption



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 8th 06, 03:40 PM posted to microsoft.public.outlook.program_vba
Luk
external usenet poster
 
Posts: 7
Default How to set CC @ Outlook Redemption

can anyone post me a sample code, how to use the Outlook Redemption CC
& BCC ?
when i try .cc " or .bcc = " then i get an error
"read only"


The Code is:

Imports Microsoft.Office.Interop.Outlook
Imports Redemption

Class Form1
Dim outApp As Microsoft.Office.Interop.Outlook.Application
Dim outMail As Microsoft.Office.Interop.Outlook.MailItem
Dim safMail As SafeMailItem

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

outApp = New Microsoft.Office.Interop.Outlook.Application
outMail = outApp.CreateItem(OlItemType.olMailItem)
safMail = New SafeMailItem
safMail.Item = outMail

With safMail
")
..Cc = " - JUST READONLY ???
..Bcc = " - JUST READONLY ???
..Subject = "subject"
..Body = "something"
..Send()
End safMail

End Sub
End Class

can anyone help me?

tanks in advance!

Ads
  #2  
Old November 8th 06, 06:09 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to set CC @ Outlook Redemption

Dim safRecip As Redemption.SafeRecipient

With safMail
safRecip = ")
safRecip.Type = olBCC 'or olCC, as desired
safRecip.Resolve

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


"Luk" wrote in message
oups.com...
can anyone post me a sample code, how to use the Outlook Redemption CC
& BCC ?
when i try .cc " or .bcc = " then i get an error
"read only"


The Code is:

Imports Microsoft.Office.Interop.Outlook
Imports Redemption

Class Form1
Dim outApp As Microsoft.Office.Interop.Outlook.Application
Dim outMail As Microsoft.Office.Interop.Outlook.MailItem
Dim safMail As SafeMailItem

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

outApp = New Microsoft.Office.Interop.Outlook.Application
outMail = outApp.CreateItem(OlItemType.olMailItem)
safMail = New SafeMailItem
safMail.Item = outMail

With safMail
")
.Cc = " - JUST READONLY ???
.Bcc = " - JUST READONLY ???
.Subject = "subject"
.Body = "something"
.Send()
End safMail

End Sub
End Class

can anyone help me?

tanks in advance!


  #3  
Old November 8th 06, 07:13 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to set CC @ Outlook Redemption

Only reading of the To/CC/BCC properties is blocked, but not writing, hence
SafeMailItem object only implements the read access of these properties. If
you use late binding to avoid the compiler errors, SafeMailItem will
trasparently forward the calls to the property setters to the original OOM
object assigned to the Item property. Or you can set these properties
directly on the outMail object.
Or you can use the SafeMailItem.Recipients collection to add each recipient
by calling Recipients.Add

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

"Luk" wrote in message
oups.com...
can anyone post me a sample code, how to use the Outlook Redemption CC
& BCC ?
when i try .cc " or .bcc = " then i get an error
"read only"


The Code is:

Imports Microsoft.Office.Interop.Outlook
Imports Redemption

Class Form1
Dim outApp As Microsoft.Office.Interop.Outlook.Application
Dim outMail As Microsoft.Office.Interop.Outlook.MailItem
Dim safMail As SafeMailItem

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

outApp = New Microsoft.Office.Interop.Outlook.Application
outMail = outApp.CreateItem(OlItemType.olMailItem)
safMail = New SafeMailItem
safMail.Item = outMail

With safMail
")
.Cc = " - JUST READONLY ???
.Bcc = " - JUST READONLY ???
.Subject = "subject"
.Body = "something"
.Send()
End safMail

End Sub
End Class

can anyone help me?

tanks in advance!



  #4  
Old November 9th 06, 08:07 AM posted to microsoft.public.outlook.program_vba
Luk
external usenet poster
 
Posts: 7
Default How to set CC @ Outlook Redemption

Hello Ken,

safRecip.Type = olBCC ----- "the name "olBCC" is not declared" ...
what is wrong?

On 8 Nov., 19:09, "Ken Slovak - [MVP - Outlook]"
wrote:
Dim safRecip As Redemption.SafeRecipient

With safMail
safRecip = ")
safRecip.Type = olBCC 'or olCC, as desired
safRecip.Resolve

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

"Luk" wrote in ooglegroups.com...

can anyone post me a sample code, how to use the Outlook Redemption CC
& BCC ?
when i try .cc " or .bcc = " then i get an error
"read only"


The Code is:


Imports Microsoft.Office.Interop.Outlook
Imports Redemption


Class Form1
Dim outApp As Microsoft.Office.Interop.Outlook.Application
Dim outMail As Microsoft.Office.Interop.Outlook.MailItem
Dim safMail As SafeMailItem


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click


outApp = New Microsoft.Office.Interop.Outlook.Application
outMail = outApp.CreateItem(OlItemType.olMailItem)
safMail = New SafeMailItem
safMail.Item = outMail


With safMail
")
.Cc = " - JUST READONLY ???
.Bcc = " - JUST READONLY ???
.Subject = "subject"
.Body = "something"
.Send()
End safMail


End Sub
End Class


can anyone help me?


tanks in advance!


  #5  
Old November 9th 06, 11:24 AM posted to microsoft.public.outlook.program_vba
Luk
external usenet poster
 
Posts: 7
Default How to set CC @ Outlook Redemption

Hello Dmitry, hello Ken,

safRecip.Type = olBCC ----- "the name "olBCC" is not declared" ...
what is wrong?





On 8 Nov., 20:13, "Dmitry Streblechenko" wrote:
Only reading of the To/CC/BCC properties is blocked, but not writing, hence
SafeMailItem object only implements the read access of these properties. If
you use late binding to avoid the compiler errors, SafeMailItem will
trasparently forward the calls to the property setters to the original OOM
object assigned to the Item property. Or you can set these properties
directly on the outMail object.
Or you can use the SafeMailItem.Recipients collection to add each recipient
by calling Recipients.Add

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

"Luk" wrote in ooglegroups.com...

can anyone post me a sample code, how to use the Outlook Redemption CC
& BCC ?
when i try .cc " or .bcc = " then i get an error
"read only"


The Code is:


Imports Microsoft.Office.Interop.Outlook
Imports Redemption


Class Form1
Dim outApp As Microsoft.Office.Interop.Outlook.Application
Dim outMail As Microsoft.Office.Interop.Outlook.MailItem
Dim safMail As SafeMailItem


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click


outApp = New Microsoft.Office.Interop.Outlook.Application
outMail = outApp.CreateItem(OlItemType.olMailItem)
safMail = New SafeMailItem
safMail.Item = outMail


With safMail
")
.Cc = " - JUST READONLY ???
.Bcc = " - JUST READONLY ???
.Subject = "subject"
.Body = "something"
.Send()
End safMail


End Sub
End Class


can anyone help me?


tanks in advance!


  #6  
Old November 9th 06, 01:09 PM posted to microsoft.public.outlook.program_vba
Luk
external usenet poster
 
Posts: 7
Default How to set CC @ Outlook Redemption

Can you please post me an complete working code?

THX in advance!

  #7  
Old November 9th 06, 03:10 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to set CC @ Outlook Redemption

Outlook.OlMailRecipientType.olBCC

The Object Browser can be used to see what enumerations are there and what
properties, methods and events any object might have. Searching on olBCC in
the Object Browser returns the correct enumeration and enumeration member.

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


"Luk" wrote in message
oups.com...
Hello Ken,

safRecip.Type = olBCC ----- "the name "olBCC" is not declared" ...
what is wrong?


  #8  
Old November 9th 06, 03:40 PM posted to microsoft.public.outlook.program_vba
Luk
external usenet poster
 
Posts: 7
Default How to set CC @ Outlook Redemption

thank you very much Ken!!!



On 9 Nov., 16:10, "Ken Slovak - [MVP - Outlook]"
wrote:
Outlook.OlMailRecipientType.olBCC

The Object Browser can be used to see what enumerations are there and what
properties, methods and events any object might have. Searching on olBCC in
the Object Browser returns the correct enumeration and enumeration member.

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

"Luk" wrote in ooglegroups.com...

Hello Ken,


safRecip.Type = olBCC ----- "the name "olBCC" is not declared" ...
what is wrong?


  #9  
Old November 9th 06, 06:20 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to set CC @ Outlook Redemption

What exactly are you having a problem with?

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

"Luk" wrote in message
oups.com...
Can you please post me an complete working code?

THX in advance!



 




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
How to set CC @ Outlook Redemption Luk Outlook - General Queries 2 November 8th 06 02:17 PM
Outlook Folder, PutFields with Redemption [email protected] Add-ins for Outlook 1 August 11th 06 11:02 PM
Outlook freezes on Redemption SaveAs [email protected] Add-ins for Outlook 5 April 27th 06 11:46 PM
Outlook freezes on Redemption SaveAs [email protected] Add-ins for Outlook 0 April 27th 06 04:30 PM
Outlook Redemption fgibbcollins Outlook and VBA 2 March 16th 06 06:03 PM


All times are GMT +1. The time now is 06:30 PM.


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.