| 1. |
Write a Java Program to open all links of gmail.com. |
|
Answer» Create a new SESSION object by calling getDefaultInstance() method and passing properties as argument to get all of the IMPORTANT properties like HOSTNAME of the SMTP server etc. method and passing properties as argument to get all of the important properties like hostname of the SMTP server etc.Create a MimeMessage object by passing the session object CREATED in previous step. method and passing properties as argument to get all of the important properties like hostname of the SMTP server etc.Create a MimeMessage object by passing the session object created in previous step.The final step is to send EMAIL using the javax.mail.Transport |
|