..Move
should read .Move objFolderReply
I dont think .DeleteAfterSubmit = True is what I need. How do I keep a copy
of the message when moved from the company email account inbox to the company
account sent folder from being copied to the personal deleted items folder of
the associate who responded to the email. THanks for your help Dmitry
Ed
"Dmitry Streblechenko" wrote:
I am confused - if the message is only moved, not sent, what do you expect
DeleteAfterSubmit to do? It sure looks like you set the DeleteAfterSubmit on
the itm object (before you send it?) and then move that very same object.
More than that, Move takes a MAPIFolder as a parameter, but you are not
specifying one.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"emanson" wrote in message
...
I have an application that allows multiple users to work in several company
email accounts. When they select a message via my GUI interface work the
message and hit reply the message is sent and then certain audit tags
applied. The original message with the modifications then needs to be
moved
to archive folders.
Thanks!
Ed
"Dmitry Streblechenko" wrote:
Why do you call Move? It is a function returning new item; the original
mesasge must be immediately relased, much less sent.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"emanson" wrote in message
...
Hello,
Any ideas why in the following the .DeleteAfterSubmit command does not
work?
With itm
.SentOnBehalfOfName = emailaccountname
.To = UserSender
.Unread = True
.VotingResponse = ReasonCode
.Body = UserBody
.Subject = UserSubject
.RemoteStatus = AgentCode
.Mileage = AuditInfo & "," & Date & " " & Time
.FlagRequest = ServerTime
.DeleteAfterSubmit = True
.Move
End With
The code still writes the moved message to the personal namespace
delete
folder of the user running the vb6.0 application?