View Single Post
  #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!



Ads