Jump to content

Scheduled email not being sent


nealhudson

Recommended Posts

Hi

 

I have set up a Scheduled Job to create a report, and the .pdf output is created and placed in the correct folder, however the email is not being sent.

 

Before doing this I amended the js.mail.properties to have the following values:

 

Code:
report.scheduler.mail.sender.host=mysmtpserver
report.scheduler.mail.sender.username=myusername
report.scheduler.mail.sender.password=mypassword
report.scheduler.mail.sender.from=myemail
report.scheduler.mail.sender.protocol=smtp
report.scheduler.mail.sender.port=25

 

I also followed the instructions here:

http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=10&id=21909#21909

 

to add the javaMailProperties to the applicationContext-report-scheduling.xml file.

 

I switched on debugging and restarted the server, and am getting the following error:

26 Sep 2007 10:27:07,427 ERROR com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob ,JasperServerScheduler_Worker-0:200 - org.springframework.mail.MailSendException; nested exceptions (0) are:
org.springframework.mail.MailSendException; nested exceptions (0) are:
Caused by:
javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect

 

Why is this still looking at the SMTP localhost?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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