Thursday, May 17, 2001 03:13 PM
Without any specific knowledge on JavaMail I try to answer.
you can guess where NullPointerException is raised checking the stacktrace.
Looking at the code (but not knowing
class - I think from javamail api), the NullPointerException can happen if
returns null setting mailSession to null; and calling
you get the exception.
pls. check value of mailSession after getDefaultInstance invokation.