Emailed report is blank

I'm trying to send a report via a button click here is my code:

system.report.executeAndDistribute(path = "Report", action= "email", actionSettings = {"smtpServerName":"Gmail", "from":"reports@gmail.com", "to":["test@gmail.com"], "subject":"test"})

I'm receiving the report but the report isn't showing any data. How is that?

Just to clarify, when emailed all I see are the headers but there is no data even if there is data when viewed on the client

As a starting point, I would either enable debug mode on the SMTP profile being used to send the report or just capture the SMTP traffic on Wireshark and look to see if the email body is actually being omitted or not.

https://docs.inductiveautomation.com/display/DOC81/Email+Settings#EmailSettings-SMTPProfileSettings

Did you find the solution to this?
I am doing a Run Script action. The PDF of the report gets emailed but no data on it. Just the header followed by <N/A> is displayed in the report.