>> Outlook Message

J

Jonathan

Hi, using Access 2003. We have 2 ways of creating an email message. 1,
directly in Outlook. 2, from within an Access application.

In Outlook I use the ThisOutlookSession.Application_ItemSend event to trap
sent messages and check content of message subject. When the subject includes
a specific reference, the message is logged in an Access Application.
However, this only works for messages created in Outlook. Messages created in
the Access application, even though they are displayed in Outlook to give
uses an opportunity to edit the message prior to sending, do not trigger the
ThisOutlookSession.Application_ItemSend event when they are sent.

Why do messages created using Access seem to bypass the
ThisOutlookSession.Application_ItemSend event?

In short, I can log a message from Access when a message is created. How do
I record changes that a user may make to a message prior to sending?

Any ideas or suggestions appreciated :)

Many thanks,
Jonathan
 
D

dch3

That'd be a question for Sue Mosher in the Outlook newsgroup/discussion
group, but I'm willing to bet that its because you're creating the message
directly in code as opposed to the actual application. What you can do is
copy the code from the _ItemSend event from Outlook and use it to check the
message that you're creating via Outlook using the .Subject and .Body
(.BodyText?) properties of the Outlook.MailItem object.
 

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