aspose file tools*
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: 751
Java Script can not send mail.

Ref :

Jigar Naik

Campbell Ritchie

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

Joined: Jan 10, 2002
Posts: 60063

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:
subject: java script for sending mails from webpage
Similar Threads
weblogic portlet
link to mock exam engines and stuff
Is there a way to automatically default a webpage to a specific area upon load?
Any tutorial for developing portlets with liferay-ide-eclipse 1.0.1
insert multi language