In
VB you can âoverrideâ
VB functions by writing your own in a module within the project.
VB automatically checks project resources before checking
VB's libraries.
That would allow you to write your own MsgBox function that displays your own form as a âmessage box.â If you wanted to, you could put a text field (label, button, textbox, ...) on the form's face that effectively operates as a hyperlink.
I donât think youâll be able to do this in VBScript.
I believe your only approach for this is going to be either to let the button the user selects control the behavior of the script to enable sending mail through code (as mmcdonal suggested), or write a âmessage boxâ html document with the email link in it, and display that HTML document in an internet browser instead of showing a message box. (Of course, that would not be modal, as a message box is...)
There is one other thing that you could do, the process of which Iâm not sure of: Write a true
VB ActiveX DLL that presents a
VB form with the e-mail link on it as the action of a function in the DLL. When you call the function (which Iâm not sure how you do in VBScript) the call would be synchronous, giving you the ability to mimic a modal dialog. You could write the function to take all the e-mail details as arguments. Just a thought.