An Outlook email is generated when I click a button on my webpage (created using basic HTML and JS). It does not automatically send, nor do I want it to.
I want to capture when the email is manually sent in my webpage table.
Can I do this from Outlook VBA as this answer for Excel?
Or any way to do this from my webpage itself without using any external libraries or packages?
Available tools:
Note: I don't have privileges to install packages.
No, you cannot do that - the best you can do is to show a new message (either using a mailto
link or by creating a new EML file), but since you cannot (generally) run any client side code and cannot interact with Outlook from a webpage script, you cannot hook up the Application.ItemSend
event.
You can of course add your own email address to CC or BCC and then process the incoming message on your server, but I am not sure the end users will like that and they can always remove that recipient from the message when it is displayed.