my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes java script for sending mails from webpage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "java script for sending mails from webpage" Watch "java script for sending mails from webpage" New topic

java script for sending mails from webpage

Karthik krishnamurthy

Joined: Sep 15, 2006
Posts: 6

I am developing a website where I have got a webpage to post a query to me. I have got the textarea to type the query. I am trying to write a javascript such that when the user presses the send button I get a mail with the content he typed.


Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 761
Java Script can not send mail.

Ref :

Jigar Naik

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45421
. . . and welcome to JavaRanch, Karthik Krishnamurthy
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63552

While you can use the mailto: pseudo-protocol to initiate a message using the system's default mail program, JavaScript (or HTML) cannot send the mail. You'll either need to rely upon the mail client, or write code on the server to send messages.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: java script for sending mails from webpage
jQuery in Action, 3rd edition