• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mailserver help?

 
Bashar Ayyash
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I need your help (if you could? ) in building a mail form as follow:

I want to build a form page which contains a regular requests like (name, age, sex, country, , , etc.)
and contains two fields (email1, email2) in the first field will be the user e-mail, and in the second one it will be user friend email, when user submit the form three things will happen, 1- The form will be entered into two tables tbl_admin, and tbl_user.
2- a copy of the form will be sent to the first email (which is the user personal emai)
3- another copy will be sent to the user friend.

I'm building my site using JSP and servlet technology, and I'm using JBoss application server.

Thank you very much for any help you'll provide.

Best Regards,
Bashar
[ December 23, 2005: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you've given us your requirements.

Defining requirements is a good first step.
The problem is, we can't help you if we have no idea what your capabilities are and/or what part of this you are stuck on.

Do you know anything about HTML?
If not, there are plenty of HTML tutorials on the web.
http://www.google.com/search?hl=en&q=HTML+TUTORIAL&btnG=Google+Search

Do you know Java?
http://www.google.com/search?hl=en&lr=&q=JAVA+TUTORIAL&btnG=Search
The ones on Sun's site are pretty good.

If yes to the last question,
Do you know about JDBC and SQL?
http://www.google.com/search?hl=en&lr=&q=JDBC+TUTORIAL&btnG=Search
http://www.google.com/search?hl=en&q=SQL+TUTORIAL&btnG=Google+Search
These will be needed in order to put this data into the tables you mentioned. You did mean database tables, right?

Luckily, almost everything you need for working with email from within a Java app is contained in the javamail.jar library.
If you're not familiar with it, check out:
http://www.google.com/search?hl=en&lr=&q=JAVAMAIL+TUTORIAL&btnG=Search

While it's possible to do all of this from within a JSP page you'll find that your code will be cleaner if you break the different parts of the app into separate parts using Servlets to handle the web flow, Java beans for the business (mailing) logic and database access, and JSP for the look and feel.
For more help on breaking up your code this way do a search on the
Model, View, Controller (MVC) pattern.

If you get hung up on any one part or have a specific question about one aspect of your project, mailing lists and forums like this one are a great way to get assistance from someone who's been there.
What they are not, is a substitution for reading and following the above mentioned tutorials.

Good-Luck and let us know how you make out.
 
Bashar Ayyash
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ben,

Thank you very much, for your help and your nice talk

I'm certified java programmer and studying kathys book (Head First Servlet & JSP) she's my favorite author, but I'm new to java mail.

I will follow the steps you gave to me, and I'll tell you the latest news about the project.

Thanx again, and Merry Christmas
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!