I am trying to send an automatic email to bypass the outlook security model by using the Redemption objects which I have dowloaded from the web.
However the code I have doesn't seem to work, I'm not sure if this is missing some important code or wheter the syntax isin't relevant for a .Net project. The code is as follows:-
Dim SafeItem, oItem
SafeItem = CreateObject("Redemption.SafeMailItem") '
oItem = Application.CreateItem(0)
SafeItem.Item = oItem
SafeItem.Recipients.Add("name@domain.com")
SafeItem.Recipients.ResolveAll()
SafeItem.Subject = "Testing Redemption"
SafeItem.Send()
It is the Application.CreateItem(0) which is causing me problems, is this because this code is designed for VBA?
Any advice would be appreciated.
However the code I have doesn't seem to work, I'm not sure if this is missing some important code or wheter the syntax isin't relevant for a .Net project. The code is as follows:-
Dim SafeItem, oItem
SafeItem = CreateObject("Redemption.SafeMailItem") '
oItem = Application.CreateItem(0)
SafeItem.Item = oItem
SafeItem.Recipients.Add("name@domain.com")
SafeItem.Recipients.ResolveAll()
SafeItem.Subject = "Testing Redemption"
SafeItem.Send()
It is the Application.CreateItem(0) which is causing me problems, is this because this code is designed for VBA?
Any advice would be appreciated.