Reputation: 471
I do a have a submit button which will gives a confirmation messagebox when clicked. If user clicks on YES then it needs to open an outlook email on client side. Can you please provide me the sample code for that ?
Something like this ...
<a href="mailto:[email protected]">Email</a>
Thanks
Upvotes: 0
Views: 1658
Reputation: 3809
Here's a place to start. You'll need to wire your "Yes" button to submit the form. The "Yes" button here is to demonstrate that a button can launch a mailto
action.
<html>
<body>
<form action="mailto:[email protected]">
<input type="submit" value="Yes" />
</form>
</body>
</html>
Upvotes: 1
Reputation: 1159
personally, I don't think this is possible with classic asp.
However most browsers will automatically select the default email program, visitors are able to set or change their default email program for browsers, for example:
Mozilla Firefox: 1. Click on 'Tools' 2. Choose 'Options' 3. Click on the tab 'Applications' 4. Scroll down to 'mailto' and select the Action for to your program.
Offcourse these settings are per browser different and need to be set by the visitor.
I know this is not the solution you are looking for, but at least it's explained.
Upvotes: 0