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.
Similar threads
Thread starter Title Forum Replies Date
P Message stuck in Outbox Using Outlook 2
D Email message gets stuck in Outlook 2007 Outbox Using Outlook 5
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
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
C RE: unable to delete large message clogging outbox Using Outlook 3
GregS Outlook 2016 Can I disable the Outlook Outbox? Using Outlook 2
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
B OUTBOX ERROR!!!!! Using Outlook 20
James Emails Stuck In Outlook Outbox Happening Alot Using Outlook 1
Loperman Emails hang in Outbox Using Outlook 1
C Outlook 2013 - Email Gets Sent - But Does Not Move From Outbox to Sent Box Using Outlook 4
M some emails send from outbox, some don't Using Outlook 10
S Mystery emails in Outbox Using Outlook 1
J Change Subject of 500 mails sitting in Outbox with Macro Using Outlook 6
B Cannot send emails-stuck in OutBox: OUTLOOK 2013 Using Outlook 4
E lost contacts on emptying outbox? Using Outlook 5
N Stuck in Outlook 10 Outbox Using Outlook 0
M Messages Held in Outbox 2007 Outlook 2010 Using Outlook 1
K blank emails generated in outbox when clicking on Inbox and other foders Using Outlook 0
R Force use of general outbox Using Outlook 1
J Emails stuck in Outlook outbox Using Outlook 11
P OL 2007 XP email stuck in outbox Using Outlook 3
D Email stuck in Outbox Using Outlook 3
X Exchange 2013 - Emails stuck in Outbox folder Exchange Server Administration 3
D Emails stuck in Outbox, not receiving emails, Outlook 2010 auto send/receive Using Outlook 4
L Outlook 2010- Be able to move default Mail folders (Outbox, Draft, etc) Outlook Wishlist 1
D Outbox will not send, error code 0X800CCC78 with 550 sender restricted. Using Outlook 3
G Email stuck in Outbox - Office 2013 Using Outlook 5
N Email Stuck in Outbox - Cached Mode - Roaming Profile Using Outlook 2

Similar threads

Top