• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

How do I send all messages in outlook, send/receive does not work it.

For some odd reason a previous admin had reports automatically sent via email from a commercial email account with Qwest instead of using our Exchange services. That admin has since been deposed...enter me. That commercial email account he was using just closed so I have about 700 messages queued up in the Outlook profile that I need to send.  I copied the messages from the outbox into a new mailbox we set up on exchange.  All the emails are now in the Outbox with the "to:" field already filled out with their recipients address.  I've tried hitting send/receive and it wont send them out. Other than manually opening each one and hitting send, how can i get all of them to send?
  • 2
1 Solution
Chris BottomleySoftware Quality Lead EngineerCommented:
Hello L3370,

Not sure but depending on if you have the security pack from SP3 then the following macro when executed in outlook may help

Sub clearupsend()
Dim mai As mailitem
Dim cnt As Integer
Dim fldr As MAPIFolder 
    Set fldr = Application.GetNamespace("mapi").GetDefaultFolder(olFolderOutbox)
    For cnt = fldr.Items.count To 1 Step -1
        Set mai = fldr.Items(cnt)
End Sub

Open in new window

L3370Author Commented:
That worked perfectly. I didn't even bother to think of making a macro to do this (like it would matter because I'm a terrible programmer and would have took me 4 hours.)

Again, thanks Chris. Well done.
Chris BottomleySoftware Quality Lead EngineerCommented:
Glad to help .. I honestly wasn't sure that the mechanism would work ... just thought it was worth a try.  So I learned a little bit here which always pleases.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now