I am using Javamail api and gmail smtp server to send mail in java without giving password. I have using the below code. here i am using javax.mail jar file
First, the name of the property is "mail.smtp.starttls.enable".
Second, no, you can't send mail through Gmail without authenticating first, e.g., using your password.