wood burning stoves
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
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 : http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml

Jigar Naik

Campbell Ritchie

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

Joined: Jan 10, 2002
Posts: 63355

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] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: java script for sending mails from webpage
It's not a secret anymore!