HOWTO find if message was sent.

S

Sharon Baker

I am using Outlook 2000. I have created a custom message
form. What I need to do is that once the message has been
sent, I want to add the message details (like message was
sent from... to... with subject...) to another custom
form. For this I have added code to the Item_Send event.
The problem is that incase there is a problem and the
message is not sent (the user does not have a SendAs
permission for eg.) the other form is still updated. Is
there a way to find out if the message was actually sent
or is there any event triggered after the message is sent?

Your help is greatly appreciated.

Thanks

- SB
 
S

Sue Mosher [MVP]

There is no 100% certain method, but you'll probably get the best possible results by checking the Sent Items folder.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
T

Tran Gia Loc

Hello Sharon,
1.When a message was sent, it triggers the event ItemAdd
for Items of Sent Mails folder.
2. A MailIten has a Sent property. I think that this
property indicates whether a MailItem has already sent or
not. I never use this property so I'm not 100% sure about
its purpose. So please take a look at Outlook Object Model
documentation.
Tran Gia Loc.
 

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