Jump to content
Changes to the Jaspersoft community edition download ×

email scheduler help how to configure


jasemilly
Go to solution Solved by mgeise,

Recommended Posts

Hi I am running jasper server ce 3.7.0

 

I have configured the js.quartz.properties file to allow the emailing and scheduling of reports, I have used telnet and SMTP to test my username etc and have sent a test email no problem, but when I try and schedule a report and email it I get the following error which I don't understand.

 

Mail server connection failed; nested exception is javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is:
 javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:419)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:342)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:338)
        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.sendMailNotification(ReportExecutionJob.java:1259)
 

It's a ms exchange server I am trying to speak to, but should that be an issue for simple SMTP???

 

any thoughts or ideas much appreciated.

thanks

Jasemilly

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

 

Jasemilly,

If your email server requires authentication, you also need to set a property to 'true' in applicationContext-report-scheduling.xml:

        <property name="javaMailProperties">

            <props>

                <prop key="mail.smtp.auth">true</prop>
            </props>
        </property>
 
Could this be the problem?
 
-Kris
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...