Redemption does not seem to work with Tasks

E

Ed

No prompts appear, but I get a "This message not sent indication".

Dim myOlApp As Outlook.Application
Dim myItem As TaskItem
Dim objSafeMsg As Redemption.SafeTaskItem

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olTaskItem)

With myItem
.Assign
.Subject = "SubjectNew"
.Body = Now()
End With
Set objSafeMsg = CreateObject("Redemption.SafeTaskItem")

With objSafeMsg
.Item = myItem
.Recipients.Add "emailAddress"
.Recipients.ResolveAll
.Send
End With

Set myItem = Nothing
Set myOlApp = Nothing
Set objSafeMsg = Nothing
 
D

Dmitry Streblechenko \(MVP\)

Try to get rid of the .Assign line. Also after
Set myOlApp = CreateObject("Outlook.Application")
line, add two more lines
set myNS = myOlApp.GetNamespace("MAPI")
myNS.Logon

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top