wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "sending form data to smtp gateway" Watch "sending form data to smtp gateway" New topic
Author

sending form data to smtp gateway

pwallace25
Greenhorn

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...
Peter
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
pwallace25,
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
Marshal

Joined: Jan 10, 2002
Posts: 60732
    
  65

Check out the JavaMail API.
hth,
bear


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

Joined: Feb 20, 2001
Posts: 3695

Or this post...
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=7&t=007391
 
Consider Paul's rocket mass heater.
 
subject: sending form data to smtp gateway
 
Similar Threads
Can any body solve my problem
How ro get started on mobile computing
Need help for sending emails using java servlets
embeded java smtp server
servlet and CGI?