D
Daku
Could some Java guru please help me ? I am running JRE 1.6_16 on a
Redhat EL 2.6.9_34 machine. I am using Eclipse Galileo for the actual
development. I have sendmail running on my machine.
I have in my constructor:
sysproperties = new Properties();
session = Session.getDefaultInstance(sysproperties);
transport = session.getTransport("smtp");
transport.connect("localhost.localdomain", "root", "rootpassword");
And I get an exception as:
TestMailer constructor provider exception
javax.mail.NoSuchProviderException: smtp
I have both mailapi-1.4.3.jar and javamail-1.4.3.zip in both my
compile-time and runtime CLASSPATHs.
May I know what I need to do ? Any hints, suggestions would be
immensely valuable. thanks in advance for your help.
Redhat EL 2.6.9_34 machine. I am using Eclipse Galileo for the actual
development. I have sendmail running on my machine.
I have in my constructor:
sysproperties = new Properties();
session = Session.getDefaultInstance(sysproperties);
transport = session.getTransport("smtp");
transport.connect("localhost.localdomain", "root", "rootpassword");
And I get an exception as:
TestMailer constructor provider exception
javax.mail.NoSuchProviderException: smtp
I have both mailapi-1.4.3.jar and javamail-1.4.3.zip in both my
compile-time and runtime CLASSPATHs.
May I know what I need to do ? Any hints, suggestions would be
immensely valuable. thanks in advance for your help.