English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I know the Java pretty well, and I know how to create forms and inputs to submit, but I don't know how to send All the information to my email account in one document.

2006-07-26 09:48:12 · 6 answers · asked by Rockstar 6 in Computers & Internet Programming & Design

6 answers

Java isn't related to Javascript except in small ways.

You don't even need JavsScript for this one -- an HTML form with a submit action to an email address should work just fine. You may need a mailer, though.

2006-07-26 09:51:45 · answer #1 · answered by Charles G 4 · 0 0

You can't do that using java or html, to send email you need to you a back end (server side) program (i.e. PHP, ASP, etc.) that will use server software to send the email (SMTP). Using a email address as the form submit action will only open up the user's default email client, but the email opened will be blank.

2006-07-26 16:56:56 · answer #2 · answered by John J 6 · 0 0

Hey, look, I personally don't know how to read Javascript, because I forgot the little bit of it that I learned, and I forgot HTML, but to tell the truth, Daniel's literally a genius on computers. He has been since he was like 11! So this stuff is really easy and fast for him, and he is sociable so he can explain it all really well. If you want to contact him about it, I seriously don't mind. It might actually be a good thing; who ever knows?

2006-07-27 00:27:00 · answer #3 · answered by Anonymous · 0 0

I have actually been working on this for a while, and I found that you can configure this to work on your webserver backend. On my webserver, I had to install the FrontPage extensions. This allows you to specify an SMTP server to which any submitted forms can be routed through. Then, using the FrontPage software, I was able to create my form, and say that I wanted it sent to a specific e-mail address. I still do not know of a way to configure this to work properly without first installing the necessary extensions and configuring the backend. If you need any help with this, feel free to send me an e-mail and I can assist you.

2006-07-26 16:55:57 · answer #4 · answered by abbeyroad39402 2 · 0 0

It's not usually done in JavaScript, but in a combination of HTML on the client side:


























Company:
Name:
Family name:
Email:
Comment:

Send



and some PHP (filename: feedbackproc.php) on the server side:

$formcontent="The following message was submitted to your website:\r\nCompany: $_POST[company]\r\nName: $_POST[givenname] $_POST[familyname]\r\nE-mail: $_POST[email]\r\nComment: $_POST[comment]";
$mailheader = "From: someone@email.com\r\nReply-To: someone@email.com\r\nMIME-Vers ion: 1.0\r\n";
mail("youremail@someaddress.com ", "Feedback Form", $formcontent, $mailheader)
?>

Note that the name of the PHP file also occurs in the JavaScript, in the FORM ACTION field. That is how the web server know what PHP script to use to interpret the submitted/posted data.

2006-07-26 17:06:09 · answer #5 · answered by Uninformed hence not consenting 7 · 0 0

well i don't know much about java (actually i do) but i know more about html and i can help you a little bit

2006-07-26 16:52:44 · answer #6 · answered by b.j 2 · 0 0

fedest.com, questions and answers