Skip to content

jirkapinkas/example-contact-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Just a simple email sender

This project is to showcase Servlets, JSPs and JSTL. Based on Maven, Hibernate, HSQLDB, JavaMail, Twitter Bootstrap and JQuery

Important notice! This project is without Spring, which would make configuration and service layer much more easier, but it would also increase basic knowledge at my trainings. This example is an entry-level example, so don't expect perfect Java EE architecture (it isn't) :-)

This project contains embedded HSQL database, which destroys all data at shutdown. If you want different database, add JDBC driver to pom.xml and change META-INF/persistence.xml.

To send emails you must set SMTP server configuration (in email.properties). At training we use http://www.mandrillapp.com, which offers free SMTP server, but you can provide your own. Also set preview = false (also in email.properties).

If set preview = true in email.properties, preview database with test data will be created upon application deployment. Preview database will be re-initialized once per day.

How to run: mvn jetty:run

How to build WAR file: mvn package

You can deploy this web application to Heroku. Live preview is here: http://example-contact-form.jiripinkas.cz

My other projects:

About

This project is to showcase Servlets, JSPs and JSTL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published