Skip to Content
1
Former Member
Aug 22, 2011 at 06:42 AM

Issue with JAVA Mail API

85 Views

Hi

We have a requirement to create a custom e mail. For the same I am trying to use Java Mail API.I am facing an issue with the following code:

session session1 = session.getInstance(properties, null);

System gives an error Sourced file: inline evaluation of: ``Properties props = new Properties(); session session1 = session.getInstance(prop . . . '' : Typed variable declaration : Class: session not found in namespace

Is there some specific API i need to import for session class. Kindly suggest.

Regards

Shobha