nennikers Posted June 10, 2010 Share Posted June 10, 2010 Hoping someone can assist. I have big keyboard-shaped bruises on my forehead. ;)Cannot for the life of me get the Report Scheduler to work with Mail. I have added the smtp.mail.auth property to applicationContext-report-scheduling.xml as suggested in this forum. I have adjusted my settings in js.quartz.properties to match my installation as follows: http://www.<website>.com:8080/jasperserver mail.<website>.comreport.scheduler.mail.sender.username=admin@<website>.comreport.scheduler.mail.sender.password=<password>report.scheduler.mail.sender.from=admin@<website>.comreport.scheduler.mail.sender.protocol=smtpreport.scheduler.mail.sender.port=25I can telnet to mail.<website>.com via port 25.But no matter what, after trying to e-mail a scheduled report, I get this error message in the code box below:I'm sure I'm overlooking something small. I would really appreciate a fresh set of eyeballs! My connection SHOULD NOT technically be refused! Thanks for your help! Code: report.scheduler.mail.sender.host=report.scheduler.web.deployment.uri=Post Edited by nennikers at 06/11/2010 03:56 Link to comment Share on other sites More sharing options...
tkavanagh Posted June 11, 2010 Share Posted June 11, 2010 Maybe I'm missing something, but I don't see a "host" specified in the original post. Here is a clip from the automated, "buildomatic" (see Install Guide Section 5), property files that automatically setup all required config files from a single property file: quartz.mail.sender.host=mail.localhost.comquartz.mail.sender.port=25quartz.mail.sender.protocol=smtpquartz.mail.sender.username=adminquartz.mail.sender.password=passwordquartz.mail.sender.from=admin@localhost.comquartz.web.deployment.uri=http://localhost:8080/jasperserver-pro (NOTE: unfortunately, non-default values for port and protocol are not supported currently. But this is not an issue in your case) Link to comment Share on other sites More sharing options...
nennikers Posted June 12, 2010 Author Share Posted June 12, 2010 Thank you for your response!My apologies...I omitted the host in my original post. I have it set to mail.<website>.com. I'm using the EXACT specifications from cPanel for the e-mail config in js.quartz.properties. I'm at a total loss as to why it refuses to work for me.For username, I've tried:admin admin+<website>.comadmin@localhost.comadmin+localhost.comadmin@<website>.comall to no avail. As for host, I've tried: mail.<website>.com mail.localhost.comSMTP mail is accessible and workable through Outlook and even Hotmail. But I can't get the config to work through JasperServer. Granted, I haven't actually tried to test it through JavaMail itself. When I finally see what I'm missing, I'm sure I'll be smacking myself on the forehead!Any other ideas? Thanks! Link to comment Share on other sites More sharing options...
tmentz Posted June 23, 2010 Share Posted June 23, 2010 Did you discover what the issue was? I have a test report running every morning and it works only 1-2 times a week. The rest of the time, I get: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: ororg.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: [EOF]I've checked all of the settings and it does work sometimes. We are also converting to JasperSoft from another product and that product's reports run at the same time to the same e-mail server without issue, so I know the e-mail server is active at the time this report is running.Thanks 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