Jump to content
Changes to the Jaspersoft community edition download ×

Scheduled email not sent :(


kennethcr

Recommended Posts

Hi,

I configure the JasperServer report when I installed (hostname, port, smtp, emailAccount, password). Then I configure a new schedule job. At this point all is right :), but when I check the mail account I was not receive any email.

Can some one help me ?

The schedule changes its respective times executions but I cant see email into my account :(

 

Thanks.

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I found the file: ...webappsjasperserverWEB-INFjs.mail.properties and saw the content:

 

js.mail.properties

report.scheduler.mail.sender.host=myDomain.com
report.scheduler.mail.sender.username=jasper
report.scheduler.mail.sender.password=jasper
report.scheduler.mail.sender.from=jasper@jaspersoft.com
report.scheduler.mail.sender.protocol=smtp
report.scheduler.mail.sender.port=25

 

So, the parameters that I gave to Installer in the installation process were not keep.

 

Can you explain me ?

Because I change this values into this file, but it doesn't work yet :(

Link to comment
Share on other sites

I check it, you have it ;)

 

I see the error description, basically the problem is with the authentication. So, I ask: if my server requires authentication, What I could do to specify that to the JasperServer ?

 

Does exist a way to JasperServer works with this EmailServer ?

 

Error on View/Messages

Job: test 4 (ID: 3)
Report unit: /reports/samples/AllAccounts
Quartz Job: ReportJobs.job_3
Quartz Trigger: ReportJobs.trigger_3_0
Failed messages: javax.mail.SendFailedException: Invalid Addresses;
nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.

 

Kenneth

Link to comment
Share on other sites

In this case you'll need to edit WEB-INF/applicationContext-report-scheduling.xml, find a bean named "reportSchedulerMailSender" and add the following property to it:

Code:

<bean id="reportSchedulerMailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
...
<property name="javaMailProperties">
<props>
<prop
key="mail.smtp.auth">true</prop>
</props>
</property>
</bean>

 

HTH,

Lucian

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...