1 For the typical code in a client Java email application wh
(1) For the typical code in a client Java e-mail application, what are the types of objects needed to be created in order to make the message object that the transport class\'s send method uses as a parameter? (2) For these objects that make for the message that transport\'s send method relies on, how do these objects compositionally relate to each other?
Solution
(1)
For transport mail message, MimeMessage requires from address, recipient, subject and text.
Then using transport one can send mail.
Syntax: Transport.send(MailMessage);
-------------------------------------------------------------------------------------------------
(2)
Transport will be set to user mail type and login credentials. So Transport can able to send mail message
where using the details in message object. MimeMessage is a part that required for Transport to send mail.
