Jump to content
We've recently updated our Privacy Statement, available here ×
  • Setting up a SMTP server for JaspersoftReports Server on a Mac


    One area of JRS that I never really played with much is the actual sending of a report via the scheduler. I’ve shown and setup countless times what the schedule would look like but never truly ran it through to see the email output. This is largely because you need an email server! For Windows you can pick from a ton of simple little email servers for testing but on the Mac I have found that there are far less to choose from. I do realize that the Mac OS has tools to help with this but to be completely honest here I’m just looking for a very simple little app that I can spin up and catch a few emails to see how this all work. Enter MockSMTP.app. This Mac application will do exactly what I’m (and maybe you) looking for. Below you will see how to set this application up and have it talk to JRS. Hope you find it useful :)





    First you will need to download the application. You can grab a 30 day trial from their website and buy it from $9.99 off the App Store.




    Installing is very easy. Just unzip the download and move the app to your applications folder if you wish.

    http://postachio-images.s3-website-us-east-1.amazonaws.com/c214c6764f99cbb35ab5b5250c5c898a.png



    To setup JasperReports Server you need to open up the js.quartz.properties file and make some changes. tomcat-location/webapps/jasperserver-location/WEB-INF/js.quartz.properties


    • Really not much to it. You need to set the location of your server so localhost will work.
    • Username and Password can really be anything you want because the SMTP tool is open.
    • The sender email can also be anything you want and MockSMPT creates an email box based on the email address.
    • We are using SMTP so just leave that alone.
    • MockSMPT will listen out of the box on port 1025 so use that port unless you made changes in MockSMPT.
    • After you makes these changes to your files you need to save the file and restart the server for them to take affect.

    http://postachio-images.s3-website-us-east-1.amazonaws.com/ba8add3814c5f20d46ca52d72cd41bc5.png



    Now, any emails sent from JRS will be caught inside of MockSMPT and be available for you to view. Below is an email sent out to a fake email address and the results. Again, MockSMPT is catching the emails so you can pretty much just send it to anyone you like. It’s pretty cool because you can see in the below picture that I have an email with multiple attachments. That is because I wanted to play around and see what it would look like if JRS sent out an email with a bunch of stuff attached. All the attachments work and it really demos quite nicely :)

    http://postachio-images.s3-website-us-east-1.amazonaws.com/116b665019e197ff4638131b0695fe69.png





    BlogId - e309b981-8d07-4a0a-b9a9-f7c76d75ecca





























    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...