aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60046
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sending form data to smtp gateway
 
Similar Threads
How ro get started on mobile computing
Can any body solve my problem
embeded java smtp server
Need help for sending emails using java servlets
servlet and CGI?