M
masani paresh
Hi,
I understand that redemption.dll library is the way for safe operations in
outlook VBA programming. Sometimes it works strange way it might be possible
that I am missing something. Could any one tell me in below code why it is
printing Body as empty string?
Private Sub Application_ItemSend(ByVal Item As Object, _
Cancel As Boolean)
Dim redAppt As Redemption.SafeMailItem
Set redAppt = CreateObject("Redemption.SafeMailItem")
redAppt.Item = Item
MsgBox "subject: " & redAppt.Subject //prints subject correctly
MsgBox "body: " & redAppt.Body //Always print empty string
End Sub
I also tried with MessageItem but it doesnt print anything. Could you also
tell me what is the difference between SafeMailItem and MessageItem?
Private Sub Application_ItemSend(ByVal Item As Object, _
Cancel As Boolean)
Dim redAppt As Redemption.MessageItem
Set redAppt = CreateObject("Redemption.MessageItem")
redAppt.Item = Item
MsgBox "subject: " & redAppt.Subject
MsgBox "body: " & redAppt.Body
End Sub
Thanks
I understand that redemption.dll library is the way for safe operations in
outlook VBA programming. Sometimes it works strange way it might be possible
that I am missing something. Could any one tell me in below code why it is
printing Body as empty string?
Private Sub Application_ItemSend(ByVal Item As Object, _
Cancel As Boolean)
Dim redAppt As Redemption.SafeMailItem
Set redAppt = CreateObject("Redemption.SafeMailItem")
redAppt.Item = Item
MsgBox "subject: " & redAppt.Subject //prints subject correctly
MsgBox "body: " & redAppt.Body //Always print empty string
End Sub
I also tried with MessageItem but it doesnt print anything. Could you also
tell me what is the difference between SafeMailItem and MessageItem?
Private Sub Application_ItemSend(ByVal Item As Object, _
Cancel As Boolean)
Dim redAppt As Redemption.MessageItem
Set redAppt = CreateObject("Redemption.MessageItem")
redAppt.Item = Item
MsgBox "subject: " & redAppt.Subject
MsgBox "body: " & redAppt.Body
End Sub
Thanks