473,549 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I make an always working mailform with java?

Hi all,

This is my first time visiting this group. I already tried two other java
groups, but those aren't very populated.
I don't know if it is the right one, otherwise please tell me in which
group I have to put me question.
And yes I know that I'm multiposting, crossposting or whatever. Reason is
that I saw this group (comp.lang.java script) later.

Well the question is as follows:
I need a simple mailform. I know how to make an html-form, but I don't want
to use
the most easy solution in html with mailto:. Everyone knows that gives you
more spam than you would like...
The form contains some text, three fields to be filled in:
1) name
2) e-mail address (for replies etc) and
3) a text-area for comment and questions
Furthermore a Transmit or Submit button. A Reset or Erase button is welcome,
but not neccessary.

I had a form using CGI-bin from my provider, but it fails somehow, so I
decided to use something different. I tried PHP, but my provider does not
support that. The only thing I can use is Html and Java.
I tried something with Java, but what I have now is not what I want, it
starts user's e-mail program and than fills in the 'to', 'from', 'subject'
and textbody. User still has to click the sent button. BUT, what happens
when user doesn't have a mail program on his machine? Or is using an exotic,
non 'standard', program?

I searched a lot on the web, maybe not on the right places, but all I found
are examples with far more functionality then what I need. I don't want
radiobuttons, checkboxes.

Could any of you help me? With an example or link?

Thanks in advance
John


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 7-6-2004
Jul 23 '05 #1
2 1634
JohnK wrote:
This is my first time visiting this group. I already tried two other java
groups, but those aren't very populated.
JavaScript has nothing to do with Java.
http://jibbering.com/faq/#FAQ2_2
I need a simple mailform. I know how to make an html-form, but I don't
want to use
the most easy solution in html with mailto:. Everyone knows that gives you
more spam than you would like...
This doesn't work anyway: http://www.isolani.co.uk/articles/mailto.html
I had a form using CGI-bin from my provider, but it fails somehow, so I
decided to use something different.
That is rather vague. I'd suggest you ask your provider for support.
I tried PHP, but my provider does not
support that. The only thing I can use is Html and Java.
I tried something with Java, but what I have now is not what I want, it
starts user's e-mail program and than fills in the 'to', 'from', 'subject'
and textbody. User still has to click the sent button. BUT, what happens
when user doesn't have a mail program on his machine? Or is using an
exotic, non 'standard', program?
Like Hotmail, GMail or Yahoo! mail? Those are pretty common. I don't think
any email client can be considered "standard".

You need something on the server. Client side JavaScript isn't going to cut
it, nor is client side Java (well, if you can persude the user to download
an applet containing your own SMTP client (probably requiring them to
upgrade their Java Plugin along the way), and outgoing SMTP isn't blocked
from their network[1], and incoming mail from dynamically assigned ip
addresses isn't blocked from your server - then you might be able to do it)
I searched a lot on the web, maybe not on the right places, but all I
found are examples with far more functionality then what I need. I don't
want radiobuttons, checkboxes.


The content of the form is not relevent. The only safe way to get form data
to email is to submit it over http and have a script running on your server
deal with it.

[1] Except for specific, designated mail servers.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2
In article <40************ *********@reade r10.nntp.hccnet .nl>,
jo**********@no reply.net enlightened us with...
Hi all,

This is my first time visiting this group. I already tried two other java
groups, but those aren't very populated. <snip>

java != javascript.
Could any of you help me? With an example or link?


Why don't you just use one of the free ones?

Although, if you have a cgi-bin, it's REALLY easy to make one in Perl.
I can't program in Perl very well and I did one. *g*
There's a bunch of free scripts on the web, too.
Even better, if your server has a cgi-bin, they probably support
formmail (perl). Ask them.
If the one you were using failed, it's probably something simple. What
fails? Is there an error given?

Mailing a form requires something on the server if you're to avoid the
nasty mailto. Javascript, generally speaking, runs on the client.

If you really meant that your host supports java servlets, let me know.
If they have javamail or smtp mail, I can make you a quick servlet to
mail a form. I've already got a JSP page that uses smtp mail to do that.

--
--
~kaeli~
Black holes were created when God divided by 0.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3876
by: FiremanSAM | last post by:
Hi, i am a newbie with php . Why does the following not work on lycos free account??????? <?PHP $to = $_POST; $from = $_POST; $mes = $_POST;
4
24512
by: Hal Vaughan | last post by:
I never noticed this before, but when I run an external program through Runtime, like this: Runtime rt = Runtime.getRuntime(); System.out.println("Running external command: " + sCommand); try {Process p = rt.exec(sCommand);} catch (Exception e) {System.out.println("Cannot Run Command: " + sCommand + ", Error: " + e);} the external...
4
8790
by: zalekbloom | last post by:
I noticed on my PC with win98/IE 6.028 applets are not working. Applets are working when I use Netscape 7.1. When I open the DOS win and I check for a Java version I am getting: C:\WINDOWS>java -version java version "1.4.1_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06) On IE Tools-Internet option-Advanced- I...
16
2652
by: Christopher Brandsdal | last post by:
I have made a asp mailform. What is wrong? I get this error: Microsoft VBScript runtime error '800a0046' Permission denied
3
1714
by: Gert-Jan van Middelkoop | last post by:
Hi, I'm using an e-mailform on my website. I would like to make a dropdownmenu with several subjects, so when the e-mail arrives I can immediatly see it's subject. Therefore, this code must be changed: <input type="hidden" name="subject" value="selection of the dropdownmenu"
19
2321
by: qazmlp | last post by:
class base { // other members public: virtual ~base() { } virtual void virtualMethod1()=0 ; virtual void virtualMethod2()=0 ; virtual void virtualMethod3()=0 ;
0
2570
by: Corey Wallis | last post by:
Dear All, I'm currently working on a project that needs to collect the output of the JHOVE application. More information about the application is available at this website: http://hul.harvard.edu/jhove/ The application is written in Java and is executed by a shell script. There are occasions where this application may get stuck in an
31
15317
by: ajos | last post by:
hi frnds, i have a form,which has 2 input text boxes, the values are entering the text boxes,when i leave the 2 text boxes blank and hit submit a java script gives the message that the 2 fields are blank.....the problem now is when i leave the text boxes blank the message appears...and when i click ok...then instead of showing me the page its...
3
1849
by: ITAutobot25 | last post by:
Now this is really the last problem (for real now) with this assignment. My sorter is not working. I managed to sort by product name in my previous assignment; however, I can't get it to work on this one. I changed things around so much in the program that I'm lost on how to get it going again. I also blocked that part of the code off with...
0
7521
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7451
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7959
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7473
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.