The mails can be send from the Servlet by the usage of the following :-

Skill/Topic: Servlets
A) Simple Mail Transfer Protocol (SMTP) implementation in Java.
B) Java Mail API
C) Both a and b
D) Neither a and b

Showing Answers 1 - 3 of 3 Answers

Vijay

  • Jul 25th, 2006
 

I think the mails can be sent using both the SMTP API and Java Mail API.SMTP API supports the communication to be done through SMTP protocol or you may code using Java Mail API to send the mails using SMTP protocol. You may refer the following URL for more information.ThanksVijay

  Was this answer useful?  Yes

Vijay

  • Jul 26th, 2006
 

In my reply I forgot to mention the URL.Here it goes:http://java.sun.com/products/javamail/FAQ.html

  Was this answer useful?  Yes

Cheng

  • Oct 18th, 2006
 

Yes, Vijay is correct! SMTP is a very simple protocol, one can even login to talk to port 25 to type SMTP protocol which has 4 letter commands (like Nasdaq Stock ticks ...:-) So, virtually, one can send email by "typing it" to the receiving system ... So, it is also possible to send email thru shell scripts if you will or with any language like C/C++ or even Fortran, Cobol, PL/1 ...etc. Java of course is one language that can implement SMTP, basically, just put in a table and send and receive (i.e. talk) with remote system ... Java Mail API is canned and does more than just SMTP, but includes it.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions