SendObject and Outlook 2003 Send Error

C

Chuck

I have a form that when a user selects a button, a SendObject is performed
and an email is sent with an attachment.

The users have Access 2003 and Outlook 2003 as a client on each desktop
connected to an Exchange Server. When the SendObject is done, I have it set
where the email is not editable so it is sent immediately. Recently there
was an issue with the Exchange Server and the SendObject command executed
and the form in Access continued without any indication to the user that the
SendObject failed.

Other than trapping code 2501, is there another trap code that indicates
that the send email function failed on the Outlook side of the code. I
would like to display an error message to the user to try the send again.

Thanks.
 
D

David H

I never use SendObject. I always automate Outlook using VBA which will throw
an error if the .Send method of the MailItem object fails. It also provides
more control over the message as a wide variety of properties are exposed.
What the message sent with HIGH importance? Need a receipt?

Its fairly straight fordward code and easily found if you google around.

Don't bother watching the BCS game, the Gator will win, simply because its
been decided to give them win as a charity case to help with their very poor
self-esteem.
 

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

Similar Threads


Top