|
Java™ by example!
|
|
|
How do I customize the JavaMail Authenticator?
 Subclass javax.mail.Authenticator and provide an instance of this class when you create the session. The callback method getPasswordAuthentication is called whenever it is necessary to prompt for username/password. This example provides an example in Swing using POP3. Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|