MailItem in Sent folders is gone !

V

vincent.y.chan

Hi,

I'm having a very unique problem again with a client who is using
Outlook 2007. Basically what happens is a certain action occurs and
then I copy the mailitem that the user just created and move it to the
sent items folder as a postitem. So the problem the client is
getting right now is that the postitem wiill be in the sent items
folder but then disappeared from the sent items folder altogether in a
short period of time. At first, I thought the postitem disappeared
completely but after searching the web, I discovered that the postitem
went to the "local failures" folder (under the "Sync Issues" folder)
instead in Outlook. Here is the message I get in the postitem.

"Your message did not reach some or all of the intended recipients.
Subject: FW: Enter Subject Line
Sent: 10/28/2008 4:05 PM
The following recipient(s) cannot be reached:
'Vincent Chan' on 10/28/2008 4:06 PM
This message could not be sent. Try sending the message
again later, or contact your network administrator. You do not have
sufficient permission to perform this operation on this object. See
the folder contact or your system administrator. Error is
[0x80070005-0x80070005-0x000508]."

I was wondering if anyone knew why I was getting this problem. Is it
because of a user security setting on the exchange server?

thanks,

Vincent
 
K

Ken Slovak - [MVP - Outlook]

Are you changing the post item to a mail item or leaving it as a post item?
Why are you using a post item, is it so you can set various properties
before the first save? If so make sure you are setting all the correct
properties on the item before you do that first save. Examine various post
and mail items in the sent items folder to make sure the properties are
being set, especially those that are related to the transport.
 
V

vincent.y.chan

Hi Ken,

Thanks for the quick reply.

When I move the mailitem to the sent items folder, I'm changing the
mailitem to a postitem so that it looks like the mailitem was sent out
by the user.

Here are the properties that I'm setting on the postitem before I make
the first save.

newItem =
DirectCast(ThisAddIn.Current.Session.GetItemFromID(CreatePostItem),
PostItem)
safeMailItem =
DirectCast(ThisAddIn.Current.CreateObject("ElqRd3.ElqSafeMailItem"),
Redemption.SafeMailItem)
safeMailItem.Item = newItem
safeMailItem.Fields(&H10800003) = Nothing
newItem.MessageClass = "IPM.Note"
safeMailItem.Save()

Here are the properties I set before making a second save.

newItem.Subject = Subject
newItem.BodyFormat = OlBodyFormat.olFormatHTML
newItem.HTMLBody = _HTMLBody
safeMailItem.Save()

newItem.Move(ThisAddIn.Current.SentItemsFolder)

The strange part is that only one of my clients is experiencing this
problem. Everyone else is getting the desired behaviour I want which
is having the mailitem sit in the "sent items" folder as a postitem.

Vincent


Are you changing the post item to a mail item or leaving it as a post item?
Why are you using a post item, is it so you can set various properties
before the first save? If so make sure you are setting all the correct
properties on the item before you do that first save. Examine various post
and mail items in the sent items folder to make sure the properties are
being set, especially those that are related to the transport.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm


I'm having a very unique problem again with a client who is using
Outlook 2007.  Basically what happens is a certain action occurs and
then I copy the mailitem that the user just created and move it to the
sent items folder as a postitem.   So the problem the client is
getting right now is that the postitem wiill be in the sent items
folder but then disappeared from the sent items folder altogether in a
short period of time.  At first, I thought the postitem disappeared
completely but after searching the web, I discovered that the postitem
went to the "local failures" folder (under the "Sync Issues" folder)
instead in Outlook.  Here is the message I get in the postitem.
"Your message did not reach some or all of the intended recipients.
     Subject:  FW: Enter Subject Line
     Sent:     10/28/2008 4:05 PM
The following recipient(s) cannot be reached:
     'Vincent Chan' on 10/28/2008 4:06 PM
           This message could not be sent. Try sending the message
again later, or contact your network administrator. You do not have
sufficient permission to perform this operation on this object.  See
the folder contact or your system administrator. Error is
[0x80070005-0x80070005-0x000508]."
I was wondering if anyone knew why I was getting this problem.  Is it
because of a user security setting on the exchange server?

Vincent
 
K

Ken Slovak - [MVP - Outlook]

If what you are using works for everyone but one customer then it's
something on that customer's machine. I'd be looking at that to see what's
different about their setup than the other users.




Hi Ken,

Thanks for the quick reply.

When I move the mailitem to the sent items folder, I'm changing the
mailitem to a postitem so that it looks like the mailitem was sent out
by the user.

Here are the properties that I'm setting on the postitem before I make
the first save.

newItem =
DirectCast(ThisAddIn.Current.Session.GetItemFromID(CreatePostItem),
PostItem)
safeMailItem =
DirectCast(ThisAddIn.Current.CreateObject("ElqRd3.ElqSafeMailItem"),
Redemption.SafeMailItem)
safeMailItem.Item = newItem
safeMailItem.Fields(&H10800003) = Nothing
newItem.MessageClass = "IPM.Note"
safeMailItem.Save()

Here are the properties I set before making a second save.

newItem.Subject = Subject
newItem.BodyFormat = OlBodyFormat.olFormatHTML
newItem.HTMLBody = _HTMLBody
safeMailItem.Save()

newItem.Move(ThisAddIn.Current.SentItemsFolder)

The strange part is that only one of my clients is experiencing this
problem. Everyone else is getting the desired behaviour I want which
is having the mailitem sit in the "sent items" folder as a postitem.

Vincent
 

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