PC Review


Reply
Thread Tools Rate Thread

Adding address in Cc and Bcc in an email sent by Redemption/Outlook

 
 
New Member
Join Date: Nov 2008
Posts: 1
 
      14th Nov 2008
Hello,
How can I add email address in Cc or Bcc with an email sent in Visual Basic (2008) using Redemption and Outlook (2003) ?

Here is my basic code :
Dim olApp As Outlook.Application
Dim olMail As Outlook.MailItem
Dim SafeMail As Redemption.SafeMailItem

olApp = CreateObject("Outlook.Application")
olMail = olApp.CreateItem(Outlook.OlItemType.olMailItem)
SafeMail = CreateObject("Redemption.SafeMailItem")
SafeMail.Item = olMail

Dim strTo As String
Dim strCc As String

strTo = "(E-Mail Removed)"
strCc = "(E-Mail Removed)"

With SafeMail

.Recipients.Add(strTo)

.Recipients.ResolveAll()
.Subject = "This is a test"
.Body = "Email sent with VB"
.Send()

End With

SafeMail = Nothing
olMail = Nothing
olApp = Nothing

Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help getting current user email address using Outlook Redemption??? Kristy Microsoft Outlook Program Addins 3 28th Sep 2010 03:25 PM
How to get the recipient's email address in Redemption? Bingo Microsoft Outlook VBA Programming 7 30th Mar 2010 07:30 AM
Use Redemption to get sender's email address BVM Microsoft Outlook Program Addins 0 3rd Mar 2010 12:27 AM
Outlook with Redemption: adding attachment BJX Microsoft Outlook VBA Programming 0 28th Apr 2009 09:02 PM
adding another email address to MS Office Outlook =?Utf-8?B?c2VhbWlj?= Microsoft Outlook Discussion 0 24th Apr 2005 01:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:13 AM.