############################################################################## # CONFIGURATION FILE ############################################################################## # JFormMail v1.1 # Copyright 2002-2003 Sunil Amber # Homepage: http://www.sunilamber.com/ssm/jformmail/ # # This file needs to be placed in the WEB-INF/classes directory. # e.g. C:\Program Files\Apache Tomcat 4.1\webapps\ssm\WEB-INF\classes # or /home/tomcat/webapps/ssm/WEB-INF/classes # Where "ssm" is your application directory # # This file is loaded ONLY ONCE when the servlet is first run # Hence, you have to restart your web application your web application # everytime you make changes to this file. ############################################################################## #------------------------------ #SMTP SERVER ADDRESS (1 of 4) #------------------------------ # This tells JFormMail which SMTP server it is supposed to send out mails from. # For better performance: it is advisable to connect to a SMTP server running # on the same machine as JFormmail itself (I.e on 127.0.0.1) or at least on a machine # which has a good connection to the server hosting JFormMail. smtp.host = 127.0.0.1 #------------------------------ #ALLOWED REFERERS (2 of 4) #------------------------------ # This config allows you to define the domains which you allow forms # to reside and use this installation of JFormMail. If a user tries to # put a form on another server, that is not yourdomain.com, they # will receive an error message when someone tries to fill out their form. # By placing yourdomain.com in the 'valid.referers' list, this also allows # www.yourdomain.com, ftp.yourdomain.com, any other http address # with yourdomain.com in it and yourdomain.com's IP address to access # JFormMail as well, so no users will be turned away. # NOTE: This is not full-proof security check. Referer headers can EASILY be faked. # Rather, it prevents someone on xyznotyou.com from using JFormMail # on your server to process forms on their server on a regular basis. # Please see 'valid.recipients' on how to further secure JFormMail. # The following configuration allows JFormMail to be accessed from a form with a probable URL # as the following (Please change it !!): # http://localhost/myform.html, http://127.0.0.1/myform.html, # http://yourdomain.com/form.html, http://www.yourdomain.com/form.html #valid.referers = 127.0.0.1, localhost, yourdomain.com, www.yourdomain.com valid.referers = www.myjavaserver.com #------------------------------ #ALLOWED ENV VARIABLES (3 of 4) #------------------------------ # This array allows the administrator to specify a list of environment # variables that the user may request be added into the e-mail. # Only environment variables listed in this array may be included in the # form field env_report. # E.g Putting the following: "" # in your form would disclose the url, from which the form was submitted. valid.env = REMOTE_HOST, REMOTE_ADDR, REMOTE_USER, HTTP_USER_AGENT, HTTP_REFERER #------------------------------ #ALLOWED RECIPIENTS (4 of 4) #------------------------------ # This variables allow system administrators to specify which domains/email-addresses # email can be sent to. This is just another precautionary measure to curb spamming. # E.g The following config would ALLOW results of forms to be sent to the following email # addresses: someone@yahoo.com, anybody@yahoo.com, gates@apple.com, anybody@yourdomain.com # but NOT to: stevejobs@apple.com, someone@hotmail.com, someone@somedomain.com #valid.recipients = yahoo.com , gates@apple.com, yourdomain.com valid.recipients = sunil18@mail.com ##############################################################################