Results 1 to 5 of 5
  1. #1
    Lounger
    Join Date
    Feb 2001
    Location
    London UK, Gtr London, England
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Outlook 2000 VBA> Item.send sent but also in outbo (Outlook 2000)

    I'm writing a Custom send button macro that saves the current item, moves it to a folder, then sends it.
    What's happening is the item is being sent ok, but appears or remains in the outbox. (users using exchange server 5.5)

    Any Ideas how to prevent this? I don't want to clear out the outbox as the user could be offline.

    Thanks

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Outlook 2000 VBA> Item.send sent but also in outbo (Outlook 2000)

    What folder are you moving it to?

    Why not just send it? A copy will be saved in the Sent folder unless your code restricts that functionality.

    Furthermore, what happends when you click Send/Receive? Does the item stranded in the Outbox stay there? If so, something's wrong. If not, does the recipient then get 2 copies of the message?
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    Lounger
    Join Date
    Feb 2001
    Location
    London UK, Gtr London, England
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Outlook 2000 VBA> Item.send sent but also in outbo (Outlook 2000)

    I am moving it to a folder provided via a MAPI intergrated Document management application.

    I have just discovered a solution to the problem, your message gave me an idea.

    I know I'm going into some detail here, but this may help people in the future.

    The objective was to get the email into the DMS, and not have it in sent items folder for users to process again later. When clicking on the new send button, the email had its SaveSentMessageFolder set to the DMS folder, The item was then saved, moved to the folder, and then sent.

    What I think was causing the issue was the SaveSentMessageFolder. For some reason it was deciding to save it once sent to "outbox", (the item reaches it's destination without a problem) I removed the SaveSentMessageFolder part and everything worked ok, except I was left with the item in the sent folder again.
    What I have decided to do now is set the SaveSentMessageFolder to the deleted items folder.

    This may be acceptable, or I may look at having the item not have a SaveSentMessageFolder.

    Thanks

  4. #4
    Lounger
    Join Date
    Feb 2001
    Location
    London UK, Gtr London, England
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Outlook 2000 VBA> Item.send sent but also in outbo (Outlook 2000)

    Cool! worked
    Thanks!

  5. #5
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Outlook 2000 VBA> Item.send sent but also in outbo (Outlook 2000)

    May I be so bold as to suggest you approach the SaveSentMessageFolder property with caution. I suspected that item might be related to your problem. You can actually inadvertantly rename a folder using that property. Read the help on that one very carefully. I speak from exerience...

    To prevent a message going to the sent folder, the property to use is:

    .DeleteAfterSubmit = True

    Good old MS and the weird, nerdy way those programmers do their thing. Get the logic here: copy the message item to the Sent folder, then delete it.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •