Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If I create a new E:Mail and click Send, the Application_ItemSend VBA code that I have created cuts in and intercepts the E:Mail.

However, if the E:Mail is created by a particular Application that I use and I click on the Send button, the code doesn't cut in ... why would this be ?!?!?

What could be different with the Send E:Mail Form that I create and the Form the Application creates ? Am I able to influence this to make my VBA code cut in ?

Many thanks if you can help :-) ...
Posted
Updated 23-Jan-16 6:38am
v4

 
Share this answer
 
v2
Comments
Gary Heath 23-Jan-16 8:46am    
You don't think I had the sense to try that before posting in here, then Richard ?
Richard MacCutchan 23-Jan-16 9:27am    
Most people who post here don't seem to bother. Also, there is no mention in your question of the searches you did or the results you obtained. We can only work with what information you provide.
[no name] 23-Jan-16 10:04am    
A 5 for answer and comment.
Richard MacCutchan 23-Jan-16 11:01am    
:thumbsup:
Gary Heath 23-Jan-16 12:25pm    
Well this is helpful, five stars for the solution which is basically "use google" and doesn't help one bit as there is no answer to be found there, so isn't a solution in any way, shape or form, just brilliant !!!
After seeing your updated question and perusing the MAPI documentation, there is no notification sent and no way to subscribe to any event that an email is being sent. What you want to do doesn't have any known method of being implemented.
 
Share this answer
 
If anybody is running into this problem and finds my question, the E:Mail protocol used to create the mail in the application is MAPI and this means that the VBA is being bypassed.

As far as I have found so far there is no way around this :(
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900