File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes sending form data to smtp gateway Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "sending form data to smtp gateway" Watch "sending form data to smtp gateway" New topic

sending form data to smtp gateway


Joined: Mar 04, 2002
Posts: 3
I have a form on a web page and I would like to build a servlet that will extract the data from the form and compose an email message containing the form data and fire it off to an SMTP gateway addresses to a specified email address. I've seen this done rather elaboratley with perl but not with servlets. I know enough about servlets to get the data extracted from the form but what is the easiest way to send it to the SMTP gateway? Thanks in advance for any assistance...
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
Javaranch has a naming policy which is strictly enforced. Please read the policy and change your display name if you wish to continue posting here. Thanks.

Matthew Phillips
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Check out the JavaMail API.

[Asking smart questions] [About Bear] [Books by Bear]
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Or this post...
I agree. Here's the link:
subject: sending form data to smtp gateway
It's not a secret anymore!