kennethcr Posted August 4, 2007 Share Posted August 4, 2007 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 More sharing options...
kennethcr Posted August 4, 2007 Author Share Posted August 4, 2007 I found the file: ...webappsjasperserverWEB-INFjs.mail.properties and saw the content: js.mail.propertiesreport.scheduler.mail.sender.host=myDomain.comreport.scheduler.mail.sender.username=jasperreport.scheduler.mail.sender.password=jasperreport.scheduler.mail.sender.from=jasper@jaspersoft.com report.scheduler.mail.sender.protocol=smtpreport.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 More sharing options...
lucianc Posted August 6, 2007 Share Posted August 6, 2007 Do you have any job error messages in JasperServer? I'm talking about the messages you access via the View/Messages menu? Regards,Lucian Link to comment Share on other sites More sharing options...
lucianc Posted August 6, 2007 Share Posted August 6, 2007 PS: this is the JasperReports forum. Use the JasperServer forum from now on for JasperServer-related topics. Regards,Lucian Link to comment Share on other sites More sharing options...
kennethcr Posted August 7, 2007 Author Share Posted August 7, 2007 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/MessagesJob: test 4 (ID: 3)Report unit: /reports/samples/AllAccountsQuartz Job: ReportJobs.job_3Quartz Trigger: ReportJobs.trigger_3_0Failed 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 More sharing options...
lucianc Posted August 7, 2007 Share Posted August 7, 2007 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> <propkey="mail.smtp.auth">true</prop> </props> </property></bean> HTH,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now