<strong>Read me.</strong>!_NEWLINE_!Its urgent
1 posts in topic
Flat View  Flat View

Posted By:   noor_khan
Posted On:   Friday, September 6, 2002 10:57 AM

Is there any way to know the mail host name while sending
a mail.
Infact we r making a project in which students have to submit the assignments
to a teacher.

we donot want that student himself enter his ISP hostname.
we just want he should click the submit button and mails should be submitted.
Definately all students would have different smtp host name so is there any
method which could dynamically check the students mail host name.

Re: <strong>Read me.</strong>!_NEWLINE_!Its urgent

Posted By:   Stephen_McConnell  
Posted On:   Friday, September 6, 2002 11:32 AM

I don't quite understand what you want.

However, you might look at the type of model that Yahoo mail uses or something like that.

In that one can create a JSP page that a student logs into which might have a list of instructors and classes being offered. The student clicks that and it shows another page with the assignments.

The student clicks the assignment; and it allows the student to attach the assignment to that class. Since the student had to log in, the Servlet or JSP or whatever is handling the assignment attachment, then creates an e-mail from the student to the instructor with the assignment attached. The student could also possibly enter comments in a comment block.

That way the student doesn't have to know their ISP.

Programatically, it would require the ablity to upload the assignment to the server site (the code to do something like that is available in the JSP or Servlet FAQs). Then, you could use the JavaMail api's to create an e-mail with the appropriate instructor's address, attach the uploaded file to the e-mail and then send it to the instructor.

I hope this idea helps.

Stephen McConnell

About | Sitemap | Contact