How can i set the usename and password in the properties before creating the session?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ananda_tanguturi
Posted On:   Wednesday, July 25, 2001 06:36 AM


how can is getrid of
Transport = session.transport("smtp");
transport.connect(smtphost,user,password)


I would like to 'put' values for smtp-user name and password and use the Properties object to create session.


where can i get the list of key values and their explanations?

if i create a session with username and password already assigned in the properties.. Could i be able to use
transport.connet()
or something else.. to avoid specifying user and password once again!
thanks in advance.

Re: How can i set the usename and password in the properties before creating the session?

Posted By:   John_Zukowski  
Posted On:   Wednesday, July 25, 2001 09:02 PM

The javadoc for the com.sun.mail classes includes the property settings. They don't list one for passwords.
About | Sitemap | Contact