Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automatic Mail sending Process...

 
thambi durai
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to implement automatic Mail sending process in my project using Jsp..

can any one help me...
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should not put code like this into a JSP (which is meant for generating text, mostly HTML, but not for embedding program logic). Use a servlet (or a JSP backing bean) instead.

The Java API for sending mail is called JavaMail. The JEE FAQ has a number of helpful links regarding JavaMail, e.g. an introduction with many code examples.

Do you already have a mail server you can use?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic