0

Im trying to find an ultra simple example that takes a single text box value, and emails it to an address that I specify when the user hits "submit"

The form would be something like this:

<form>
   <input type="text" name="emailAddy" value="Enter Your Email Address" size="25" />
   <input type="submit" value="Get Notified" />
</form>

On click, it should email the emalAddy field value to me... Any thoughts?

Paddy
  • 33,309
  • 15
  • 79
  • 114
rockit
  • 55
  • 4

3 Answers3

4

AFAIK, You can't use plain jQuery and HTML to send emails. You need some sort of server side code to mail.

What you can do instead is, submit the form, extract the details on the server side and send the email. This question and links given there might be of help.

Community
  • 1
  • 1
Praveen Lobo
  • 6,956
  • 2
  • 28
  • 40
1

the closest you can do to send an email on the client-side is using mailto:email@adress.com, the same issue was addressed here

For sending emails you need a server-side interaction

Community
  • 1
  • 1
Ibu
  • 42,752
  • 13
  • 76
  • 103
0

You could use some javascript to feed the textbox value to a mailto: link...see syntax here. Then you don't even have to code the server side...their mail client does the work.

JeffSahol
  • 971
  • 8
  • 19