HI..
First. I am new at this outlook programming stuff.
I have gotten the following sample send code working on my test PC using outlook redemption.
I do have a few questions however.
1. How can I now attach files to the email message? For example if I want to attach file c:\temp\ex.gif and also c:\temp\ex2.gif ... what would the code change be?
2. How can I specify CC and or BCC recipients.?
Thanks, for any help.
George
***************************************
Dim application
Dim SafeItem, oItem
Set application = CreateObject("Outlook.Application"
Set SafeItem = CreateObject("Redemption.SafeMailItem"
'Create an instance of Redemption.SafeMailItem
Set oItem = application.CreateItem(0) 'Create a new message
SafeItem.Item = oItem 'set Item property
SafeItem.Recipients.Add "test2@pcwp.com"
SafeItem.Recipients.Add "test@yahoo.com"
SafeItem.Recipients.ResolveAll
SafeItem.Subject = "Testing Redemption subject"
SafeItem.Body = "Test of body of message."
SafeItem.Send
Set oItem = Nothing
Set SafeItem = Nothing
Set application = Nothing
First. I am new at this outlook programming stuff.
I have gotten the following sample send code working on my test PC using outlook redemption.
I do have a few questions however.
1. How can I now attach files to the email message? For example if I want to attach file c:\temp\ex.gif and also c:\temp\ex2.gif ... what would the code change be?
2. How can I specify CC and or BCC recipients.?
Thanks, for any help.
George
***************************************
Dim application
Dim SafeItem, oItem
Set application = CreateObject("Outlook.Application"
Set SafeItem = CreateObject("Redemption.SafeMailItem"
Set oItem = application.CreateItem(0) 'Create a new message
SafeItem.Item = oItem 'set Item property
SafeItem.Recipients.Add "test2@pcwp.com"
SafeItem.Recipients.Add "test@yahoo.com"
SafeItem.Recipients.ResolveAll
SafeItem.Subject = "Testing Redemption subject"
SafeItem.Body = "Test of body of message."
SafeItem.Send
Set oItem = Nothing
Set SafeItem = Nothing
Set application = Nothing