R
Ronald van Aalten
Hi, I use Redemption to send email (outlook XP; no exchange) after
retrieving the email addresses from a contacts folder. The send emails
go into the Drafts folder, ok I understand this is standard Redemption
behaviour but in my case they REMAIN in the drafts folder as being
unsend while the messages ARE send. Nothing in the Outbox and also
nothing in the Send Items folder. This gives me no feedback if the
messages are actually send. How to get them in Send Items?
Here's my code:
Set moNS = goOutl.GetNamespace("MAPI")
moNS.Logon
Set oredCnt = CreateObject("vaMoreUtils.vaSafeContactItem")
For ix = 1 To moItems.Count '= items in a Contacts folder
Set oObj = moItems(ix)
If oObj.Class = olContact Then
oredCnt.item = oObj 'set contact item in redemption
safecontact
sEmail = oredCnt.Email1Address
Set oredMail = CreateObject("vaMoreUtils.vaSafeMailItem")
Set oMail = goOutl.CreateItem(olMailItem)
oredMail.item = oMail
oMail.Body = "this is a test"
oMail.Subject = "this is the subject"
oMail.Save
oredMail.Recipients.Add sEmail
oredMail.Recipients.ResolveAll
oredMail.Send
End If 'oObj.class
Next
Set moUtil = CreateObject("vaMoreUtils.vaMAPIUtils")
moUtil.DeliverNow
moUtil.CleanUp
retrieving the email addresses from a contacts folder. The send emails
go into the Drafts folder, ok I understand this is standard Redemption
behaviour but in my case they REMAIN in the drafts folder as being
unsend while the messages ARE send. Nothing in the Outbox and also
nothing in the Send Items folder. This gives me no feedback if the
messages are actually send. How to get them in Send Items?
Here's my code:
Set moNS = goOutl.GetNamespace("MAPI")
moNS.Logon
Set oredCnt = CreateObject("vaMoreUtils.vaSafeContactItem")
For ix = 1 To moItems.Count '= items in a Contacts folder
Set oObj = moItems(ix)
If oObj.Class = olContact Then
oredCnt.item = oObj 'set contact item in redemption
safecontact
sEmail = oredCnt.Email1Address
Set oredMail = CreateObject("vaMoreUtils.vaSafeMailItem")
Set oMail = goOutl.CreateItem(olMailItem)
oredMail.item = oMail
oMail.Body = "this is a test"
oMail.Subject = "this is the subject"
oMail.Save
oredMail.Recipients.Add sEmail
oredMail.Recipients.ResolveAll
oredMail.Send
End If 'oObj.class
Next
Set moUtil = CreateObject("vaMoreUtils.vaMAPIUtils")
moUtil.DeliverNow
moUtil.CleanUp