Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending form data to smtp gateway

 
pwallace25
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the JavaMail API.
hth,
bear
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic