H
Hunter
Hello fellow corders,
I am new to VBA, redemption and outlook.
I try to save an incomming message to a file so I can process it with
a C++ programm (that's the only thing I can code in).
I have Outlook 2003 and found out that I am not allowed to access the
MailItem.Body because of the latest service pack.
Therefore I am using Redemption.
With it I can dump the .Body to a message box, but not to a file!
I get an error saying "objewct required".
I would apprecitate help. Thank you!
Sub ProcessMail(objMsg As MailItem)
Set oMailItem = CreateObject("Redemption.SafeMailItem")
oMailItem.Item = objMsg
Open "D:\test.txt" For Output As #1
Print #1, onMailItem.Body.Item; ' ERROR here!
Close #1
End Sub
I am new to VBA, redemption and outlook.
I try to save an incomming message to a file so I can process it with
a C++ programm (that's the only thing I can code in).
I have Outlook 2003 and found out that I am not allowed to access the
MailItem.Body because of the latest service pack.
Therefore I am using Redemption.
With it I can dump the .Body to a message box, but not to a file!
I get an error saying "objewct required".
I would apprecitate help. Thank you!
Sub ProcessMail(objMsg As MailItem)
Set oMailItem = CreateObject("Redemption.SafeMailItem")
oMailItem.Item = objMsg
Open "D:\test.txt" For Output As #1
Print #1, onMailItem.Body.Item; ' ERROR here!
Close #1
End Sub