dbarbonolicom.eu Posted November 17, 2021 Share Posted November 17, 2021 Hello, I'm trying to configure JRS to send reports by email; the mail server is owned by my client and does not require any authentication (no username and no password).I can't use another mail server due to client security policies.I configured the js.quartz.properties file as follow:report.scheduler.mail.sender.host=our-client-mail-server-namereport.scheduler.mail.sender.username=report.scheduler.mail.sender.password=report.scheduler.mail.sender.from=sender-address@sender-domainreport.scheduler.mail.sender.protocol=smtpreport.scheduler.mail.sender.port=25I configured the applicationContext-report-scheduling.xml file as follows: <bean id="reportSchedulerMailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl" lazy-init="true"> <property name="host" value="${report.scheduler.mail.sender.host}"/> <property name="username" value="${report.scheduler.mail.sender.username}"/> <property name="password" value="${report.scheduler.mail.sender.password}"/> <property name="protocol" value="${report.scheduler.mail.sender.protocol}"/> <property name="port" value="${report.scheduler.mail.sender.port}"/> <property name="javaMailProperties"> <props> <prop key="mail.smtp.sendpartial">true</prop> <prop key="mail.smtp.auth">false</prop> </props> </property> </bean>I tested an ImmediateExecution of an existing job, and it stucks in executing.How can I properly configure JRS?Thanks Link to comment Share on other sites More sharing options...
Solution vchiem Posted November 25, 2021 Solution Share Posted November 25, 2021 If your mail server does not require authentication then ensure mail.smtp.auth is set to false in applicationContext-report-scheduling.xml the above config shows that this is already set. Perhaps the problem lies somewhere else but there is not enough information. You can enable mail debug to see more SMTP debug logging. Check this article on how to set mail.debug : https://community.jaspersoft.com/wiki/gmail-smtp-report-jobs-failing-smtp-authentication-error-despite-correct-username-and-password 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