jules_rocks wrote:No. First of all there isn't any JavaMail system property which holds a password. Second of all since you have that code in antique 2002-style JSP scriptlets, you should be configuring a mail server into your Java EE container (that's where you put the user ID and password) and getting a mail session via JNDI.
Do I need to put the username and password in the properties list before getting a session??