I am trying to send email through my JSP Dynpage Component on Button Click.
I use below code to send the email :
STEP 1: Properties props = System.getProperties();
STEP 2: props.put("mail.smtp.host", "mailout.company.name");
STEP 3: Session session = Session.getDefaultInstance(props, null);
STEP 4: MimeMessage message = new MimeMessage(session);
at STEP 4: I get Java.lang.NoClassDefFoundError: javax.activation.DataSource
can anyone please help me to get around this error I added activation.Jar in my project through
>Properties>BuildPath but still keep getting the same error.