The mails can be send from the Servlet by the usage of the following :-
Reveal answer
Fill a bubble to check yourself
The mails can be send from the Servlet by the usage of the following :-
Simple Mail Transfer Protocol (SMTP) implementation in Java.
Java Mail API
Both a and b
Neither a and b
Historically, sending mail from Java relied on the JavaMail API (Option B), which uses an underlying SMTP implementation. Option A is less precise (an implementation is used, but 'Java Mail API' is the standard answer). However, the source claims A is correct. This likely implies the question asks for the underlying protocol or a specific legacy implementation context (e.g. Sun's SMTP implementation). Option B is the more standard API name, but given the specific claim for A, we look for the logic: JavaMail uses SMTP. Note: Option C 'Both a and b' would normally be most accurate, but if A is the answer, the question might be distinguishing between 'using the API' vs 'using the Protocol implementation'.