user1054625
user1054625

Reputation: 471

Open outlook email when user clicks on a button - Classical ASP

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

Answers (2)

user1201210
user1201210

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

DevCentral
DevCentral

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

Related Questions