Outbox Message Stuck after reading some MailItem Properties with VBA

Status
Not open for further replies.

uflrob

New Member
Outlook version
Outlook 2016 32 bit
Email Account
Exchange Server 2013
HI, Long time reader first time poster.

I've noticed reading almost any mailitem property for any item in the outbox which is queued to be sent (such as a message sent when Outlook is in Offline mode or when a user activates the delayed delivery option) willl remove that item from the queue and those items have to be sent again. So, two questions:

First, which properties can I read without unqueuing the send? I've already found that Subject, Sent, and UnRead can be read, but that I cannot read SentOn, Size and To even though they are displayed in the Explorer.

Second, is there some way that I can read the To, DeferredDeliveryTime or SentOn properties from MAPI that will not cause the queue removal?

I did try resending the item (calling the send method again) but there are sometimes prompts when sending (such as when resending an item that had a delievery delay time which has already passed) that may make that solution unacceptable.
Code:
For Each oItem In Outlook.GetNamespace("MAPI").GetDefaultFolder(olFolderOutbox).Items
    MsgBox "OK to read:" & _
        oItem.Subject & _
        oItem.Sent & _
        oItem.UnRead

    'Reading other properties, necessitates a resend:
    'MsgBox "Not OK to read:" & _
    '    oItem.Recipients.Item(1) & oItem.DeferredDeliveryTime & _
    '    oItem.HTMLBody & oItem.Attachments.count & oItem.EntryID & _
    '    oItem.Body & oItem.To & oItem.SentOn & oItem.Size & _
    '    oItem.ConversationID & oItem.Recipients.count & oItem.Saved
    'oItem.Send
Next
Thanks!
Rob
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
P Message stuck in Outbox Using Outlook 2
D Email message gets stuck in Outlook 2007 Outbox Using Outlook 5
I Message stuck in outbox Using Outlook 1
I Re: Message stuck in outbox Using Outlook 1
J Message stuck in Outbox Using Outlook 1
G Message stuck/delayed in Outbox Using Outlook 1
S How to delete a message stuck in the OUTBOX using Outlook 2007 Using Outlook 1
C Remove a stuck message in outbox Using Outlook 2
J Outlook 2007 - Message stuck in Outbox Outlook VBA and Custom Forms 1
J Outlook 2000 Message stuck in Outbox Outlook VBA and Custom Forms 6
B Message "stuck" in outbox but only visible through OWA Using Outlook 30
C Fix for Outlook Outbox Error Message Using Outlook 1
J HOW TO DELETE OUTLOOK OUTBOX MESSAGE THAT HAS SEVERAL PHOTOS Using Outlook 1
H Message in outbox but never is sent and unable to delete because it's in the process of sending already. Using Outlook 3
M Cannot send or delete message. Hung up in outbox. Using Outlook 1
L Outlook 2003 - Says "Sending Message 1 of 1" but there is NOTHING in the Outbox. Using Outlook 1
P 'Send to mail recipient' is putting the message in my inbox, not outbox Using Outlook 5
H Messages sit in Outbox; Date field above the message particulars reads 'None.' Using Outlook 2
P When sending a message without opening Outlook Client first, the message sits in my Outbox and doesn't ship. Using Outlook 1
M Outlook 2010: Duplicate Message appears in Outbox Using Outlook 1
C Outlook 2010 - Once I send an email message it will will sit in the Outbox for several hours before 'magically' be sent and then appear in t Using Outlook 1
P outlook 2010 getting message into outbox very slow Using Outlook 2
R Cannot delete message from outbox Using Outlook 1
V Outbox continually sends message until i delete it, but says it can't send Using Outlook 2
R In Outlook 2003 I keep getting a message, "There are unsent messages in your outbox". Using Outlook 1
R How to get Office 2007 to work RELIABLY??? More specifically, How do I convince Outlook 2007 that it ALREADY SENT THE MESSAGE IN MY OUTBOX??? Using Outlook 1
S Outlook 2007 crashes upon opening & sending Outbox message Using Outlook 2
D Delete email from outbox, error message ' this file cannot be deleted because it has been moved or you have been denied access.' Using Outlook 1
B my emails won't leave outbox. error message 0x800CCC33. Using Outlook 1
V Message appears to not leave outbox on Outlook 2007 but sends multiple copies to recipients Using Outlook 2
S outlook will not send a message that is in the outbox Using Outlook 1
F Outlook emails stay in outbox and do not get sent, just upgraded from trial to 2010, error message closes too fast to read? Using Outlook 1
K Deleting Outbox message while transmitting message Using Outlook 4
C RE: unable to delete large message clogging outbox Using Outlook 3
O Email not leaving Outbox when using Excel VBA to sync Outlook account Outlook VBA and Custom Forms 4
T "cannot find the calendar folder for this item" - calendar items stuck in outbox Using Outlook 0
B One email cannot be sent or received (but leaves outbox!) Using Outlook 1
A Cant See outbox items on a secondary Account Exchange Server Administration 3
M Outbox throttler Using Outlook 4
T SMTP messages stuck in Outbox Using Outlook 0
I Outlook 2013 Send mail - it just sticks in Outbox Using Outlook.com accounts in Outlook 0
P Outlook 2013 puts replies in Outbox Using Outlook 1
Diane Poremsky After viewing the Outbox, messages won't send New Slipstick.com Articles 0
D Close Oulook after sending emails via vba without outbox getting stuck. Outlook VBA and Custom Forms 1
M Messages in Outbox reminder is wrong Using Outlook 4
D Use single outbox in Outlook 2013 Using Outlook 1
T Two Outbox's in 2007 but neither send Using Outlook 8
iwshim Transfering mail from the outbox to another computer Using Outlook 0
G "Delay Delivery" Email fails to send if opened while in Outbox Using Outlook 4
F Outbox - Multiple Emails need to be manually opened? Using Outlook 5
Similar threads


















































Top