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
Author

java script for sending mails from webpage

Karthik krishnamurthy
Greenhorn

Joined: Sep 15, 2006
Posts: 6
Hi,

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.

Regards

Karthik
Jigar Naik
Ranch Hand

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

Ref : http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml


Jigar Naik


Campbell Ritchie
Sheriff

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

Joined: Jan 10, 2002
Posts: 61606
    
  67

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