-6

my send an email button isn't working "Here's my html. Does anyone see a problem?

<input type="submit" value="SUBMIT EMAIL TO: info@whatshouldisay.ca" <a href="mailto:info@whatshouldisay.ca">
pb33
  • 45
  • 1
  • 1
  • 4

2 Answers2

8

You might use Form tag with action attribute to submit the mailto.

Here is an example:

<form method="post" action="mailto:youremail@youremail.com" >
<input type="submit" value="Send Email" /> 
</form>
Yotam
  • 350
  • 2
  • 14
5

There are several ways to do an email from HTML. Typically you see people doing a mailto like so:

<a href="mailto:email@address.com">Click to email</a>

But if you are doing it from a button you may want to look into a javascript solution.

Matthew R.
  • 4,332
  • 1
  • 24
  • 39