Report not sending with system.report.executeAndDistribute

Hello I am trying to use a mouseClicked event Handler to execute and send a report by email but I can't seem to get it to do anything when the button is clicked

this is my code
system.report.executeAndDistribute(path="Tallow pumps", project="Copy_Of_Joslin_test_CJL", action= "email",
actionSettings = {"to":['christopher.lang2@tyson.com'], "smtpServerName":"10.16.1.86", "from":"reporting@myplant.com", "subject":"Production Report"})

any ideas would be helpful

Here are a few places to get started:

  1. Wrap your code in a try-catch block and print out any errors you might be getting.
  2. Make sure your smtpServerName is set to the name of your email server, not the IP address.
1 Like

the name of the smtpServerName was the problem thank you

2 Likes